[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:
Dave Syer
2013-05-22 15:21:07 +01:00
parent a700ed4479
commit 29a81b8795
5 changed files with 158 additions and 10 deletions

View File

@@ -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

View File

@@ -50,7 +50,7 @@ public class ServiceBootstrapApplicationTests {
.run(ServiceBootstrapApplication.class);
}
});
context = future.get(10, TimeUnit.SECONDS);
context = future.get(30, TimeUnit.SECONDS);
}
@AfterClass