我想将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.
您知道如何解决它吗?
要使用管理服务注册任何客户端...我们需要以下内容
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