public final class SpringBootVersion extends Object
Note that some ClassLoaders do not expose the package metadata, hence this class might not be able to determine the Spring Boot version in all environments. Consider using a reflection-based check instead: For example, checking for the presence of a specific Spring Boot method that you intend to call.
Modifier and Type | Method and Description |
---|---|
static String |
getVersion()
Return the full version string of the present Spring Boot codebase, or
null
if it cannot be determined. |
public static String getVersion()
null
if it cannot be determined.null
Package.getImplementationVersion()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.