我想通过本教程将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.
你们有谁知道如何解决它?