我想将spring-boot-admin-starter-client注册到spring-boot-admin-server 通过本教程:http://codecentric.github.io/spring-boot-admin/1.4.5/#register-client-applications
但是在跑完之后我得到了错误:
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 2 of method applicationFactory in de.codecentric.boot.admin.config.SpringBootAdminClientAutoConfiguration required a bean of type 'org.springframework.boot.autoconfigure.web.ServerProperties' that could not be found.
- Bean method 'serverProperties' in 'ManagementServerPropertiesAutoConfiguration' not loaded because @ConditionalOnWebApplication (required) not a web application
- Bean method 'serverProperties' not loaded because @ConditionalOnWebApplication (required) not a web application
Action:
Consider revisiting the conditions above or defining a bean of type 'org.springframework.boot.autoconfigure.web.ServerProperties' in your configuration.
你们有谁知道如何解决它?
答案 0 :(得分:0)
要使用管理服务注册任何客户端...我们需要以下
2.bootstrap.properties中的属性以下
spring.boot.admin.client.url = your url of spring boot admin
spring.boot.admin.client.username = username of your spring boot admin
spring.boot.admin.client.password = password of your spring boot admin