Commit 946f3bd6 by Johannes Stelzer

EnableConfigurationProperties only when AdminClient is active

parent b910b19e
...@@ -39,10 +39,10 @@ import de.codecentric.boot.admin.web.BasicAuthHttpRequestInterceptor; ...@@ -39,10 +39,10 @@ import de.codecentric.boot.admin.web.BasicAuthHttpRequestInterceptor;
* spring-boot-admin application. If not, it registers itself. * spring-boot-admin application. If not, it registers itself.
*/ */
@Configuration @Configuration
@EnableConfigurationProperties({ AdminProperties.class, AdminClientProperties.class })
public class SpringBootAdminClientAutoConfiguration { public class SpringBootAdminClientAutoConfiguration {
@ConditionalOnProperty("spring.boot.admin.url") @ConditionalOnProperty("spring.boot.admin.url")
@EnableConfigurationProperties({ AdminProperties.class, AdminClientProperties.class })
public static class AdminClientRegistrationConfig { public static class AdminClientRegistrationConfig {
/** /**
* Task that registers the application at the spring-boot-admin * Task that registers the application at the spring-boot-admin
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment