public class

SpringVersion

extends Object
java.lang.Object
   ↳ org.springframework.core.SpringVersion

Class Overview

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.

Summary

Public Constructors
SpringVersion()
Public Methods
static String getVersion()
Return the full version string of the present Spring codebase, or null if it cannot be determined.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SpringVersion ()

Also: SpringCore

Public Methods

public static String getVersion ()

Also: SpringCore

Return the full version string of the present Spring codebase, or null if it cannot be determined.