Browse Source

Updates SpringBootVersionVerifier with class from boot 3.2

pull/1255/head
spencergibb 1 year ago
parent
commit
8cfb8e3732
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 18
      spring-cloud-commons/src/main/java/org/springframework/cloud/configuration/SpringBootVersionVerifier.java

18
spring-cloud-commons/src/main/java/org/springframework/cloud/configuration/SpringBootVersionVerifier.java

@ -81,17 +81,13 @@ class SpringBootVersionVerifier implements CompatibilityVerifier { @@ -81,17 +81,13 @@ class SpringBootVersionVerifier implements CompatibilityVerifier {
@Override
public boolean isCompatible() {
// try {
// since 3.2
// TODO: find new class/method in boot since 3.2
// Class.forName(
// "org.springframework.boot.autoconfigure.validation.ValidationConfigurationCustomizer");
return true;
// }
// catch (ClassNotFoundException e) {
// return false;
// }
try {
Class.forName("org.springframework.boot.autoconfigure.web.client.RestClientSsl");
return true;
}
catch (ClassNotFoundException e) {
return false;
}
}
};

Loading…
Cancel
Save