org.springframework.core

## 类 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 5.0 method that you intend to call.

  从以下版本开始:
    1.1
  作者:
    Juergen Hoeller

- - ### 构造器概要

    构造器
    构造器和说明
    `SpringVersion()`

  - ### 方法概要

    所有方法 静态方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `static String` | `getVersion()` Return the full version string of the present Spring codebase, or `null` if it cannot be determined.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### SpringVersion

          public SpringVersion()

  - ### 方法详细资料

    - #### getVersion

          @Nullable
          public static String getVersion()

      Return the full version string of the present Spring codebase, or `null` if it cannot be determined.
      另请参阅:
        `Package.getImplementationVersion()`