mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-10-07 23:24:24 +08:00
pref: 简化SpringBootVersionCompatibilityChecker代码
This commit is contained in:
@@ -7,14 +7,9 @@ public class SpringBootVersionCompatibilityChecker {
|
||||
|
||||
public SpringBootVersionCompatibilityChecker() {
|
||||
String version = SpringBootVersion.getVersion();
|
||||
if (SaFoxUtil.isEmpty(version)) {
|
||||
if (SaFoxUtil.isEmpty(version) || version.startsWith("1.") || version.startsWith("2.")) {
|
||||
return;
|
||||
}
|
||||
if (version.startsWith("1.") || version.startsWith("2.")) {
|
||||
return;
|
||||
}
|
||||
BootstrapMethodError error = new BootstrapMethodError("当前Spring-Boot版本为" + version + ",请尝试改用:sa-token-reactor-spring-boot3-starter");
|
||||
error.fillInStackTrace();
|
||||
throw error;
|
||||
throw new BootstrapMethodError("当前Spring-Boot版本为" + version + ",请尝试改用:sa-token-reactor-spring-boot3-starter");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user