[bs-130] Prevent double registration
* A simple check to see if it is already registered fixed the original problem * Also removed the need to have @ConfigurationProperties on a bean class (unless you want to specify the target name etc.) [Fixes #50256421] [bs-130] When actuator app starts the @ConfigurationProperties are registered with the bean factory several times
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
handlers = java.util.logging.ConsoleHandler
|
||||
.level = INFO
|
||||
|
||||
java.util.logging.ConsoleHandler.level = FINE
|
||||
sun.net.www.protocol.http.HttpURLConnection.level = ALL
|
||||
org.springframework.bootstrap.level = ALL
|
||||
@@ -50,7 +50,7 @@ public class ServiceBootstrapApplicationTests {
|
||||
.run(ServiceBootstrapApplication.class);
|
||||
}
|
||||
});
|
||||
context = future.get(10, TimeUnit.SECONDS);
|
||||
context = future.get(30, TimeUnit.SECONDS);
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
|
||||
Reference in New Issue
Block a user