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.2 method that you intend to call.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String | getVersion()
Return the full version string of the present Spring codebase,
or |
| SpringVersion | back to summary |
|---|---|
| private SpringVersion() | |
| getVersion | back to summary |
|---|---|
| public static String getVersion() Return the full version string of the present Spring codebase,
or
| |