小编Mor*_*lam的帖子

添加 Spring 执行器依赖项后无法构建项目

我已将 Spring 执行器依赖项添加到我的 Spring Boot 项目中,现在我无法执行 amvn clean install -Dspring.profiles.active=dev来构建项目,而是得到以下错误作为输出:

2020-07-03 12:44:23.454  WARN 34088 --- [           main] o.s.w.c.s.GenericWebApplicationContext   : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'healthIndicatorRegistry' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/LegacyHealthEndpointCompatibilityConfiguration.class]: Unsatisfied dependency expressed through method 'healthIndicatorRegistry' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthContributorRegistry' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate …
Run Code Online (Sandbox Code Playgroud)

java spring spring-boot spring-boot-actuator

1
推荐指数
1
解决办法
5041
查看次数

标签 统计

java ×1

spring ×1

spring-boot ×1

spring-boot-actuator ×1