类 SpringVersion
- java.lang.Object
- org.springframework.core.SpringVersion
public class SpringVersion extends Object
Class that exposes the Spring version. Fetches the "Implementation-Version" manifest attribute from the jar file.Note that some ClassLoaders do not expose the package metadata, hence this class might not be able to determine the Spring version in all environments. Consider using a reflection-based check instead: For example, checking for the presence of a specific Spring 2.0 method that you intend to call.
- 从以下版本开始:
- 1.1
- 作者:
- Juergen Hoeller
构造器详细资料
SpringVersion
public SpringVersion()
方法详细资料
getVersion
public static String getVersion()
Return the full version string of the present Spring codebase, ornull
if it cannot be determined.