mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-28 14:52:24 +00:00
Expand message on incorrect Spring version to suggest checking the classpath for unwanted jars.
This commit is contained in:
parent
0696bed78e
commit
2671e52d5a
@ -21,7 +21,8 @@ public class SpringSecurityCoreVersion {
|
|||||||
// TODO: Generate version class and information dynamically from a template in the build file
|
// TODO: Generate version class and information dynamically from a template in the build file
|
||||||
logger.info("You are running with Spring Security Core " + version);
|
logger.info("You are running with Spring Security Core " + version);
|
||||||
if (!springVersion.startsWith("3")) {
|
if (!springVersion.startsWith("3")) {
|
||||||
logger.error("Spring Major version '3' expected, but you are running with version: " + springVersion);
|
logger.error("Spring Major version '3' expected, but you are running with version: "
|
||||||
|
+ springVersion + ". Please check your classpath for unwanted jar files.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (springVersion.compareTo("3.0.5") < 0) {
|
if (springVersion.compareTo("3.0.5") < 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user