У меня было мое приложение весенней загрузки, с пружинной загрузкой-стартером-паутиной, затем я добавил пружинно-загрузочный стартер-привод в файл Gradle. Нет ошибки компиляции. Но когда я пытаюсь запустить сервер, он выдает следующее исключение:
мой контент build.gradle (включены только основные)
plugins {
id 'org.springframework.boot' version '2.1.3.RELEASE'
} ...........
compile "org.springframework.boot:spring-boot-starter-actuator"
compile group: 'io.micrometer', name: 'micrometer-registry-prometheus', version: '1.1.3' .........
мой контент application.properties
server.port = 2128<br/>
spring.couchbase.env.timeouts.connect=10000<br/>
spring.couchbase.env.timeouts.query=180000<br/>
spring.couchbase.env.timeouts.view=20000<br/>
spring.couchbase.bootstrap-hosts=localhost<br/>
spring.couchbase.bucket.name=localdb<br/>
spring.couchbase.bucket.password=*****<br/>
spring.data.couchbase.repositories.type=auto<br/>
spring.data.couchbase.auto-index=true<br/>
server.compression.enabled=true<br/>
server.compression.mime-types=application/json,text/plain<br/>
spring.servlet.multipart.enabled=true<br/>
spring.servlet.multipart.maxFileSize=50MB<br/>
spring.servlet.multipart.maxRequestSize=50MB<br/>
my Application. java
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
При запуске сервера выдается следующее исключение.
org.springframework.context.ApplicationContextException: Unable to start web server;
nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'servletEndpointRegistrar' defined in class path resource
WebMvcServletEndpointManagementContextConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException:
Failed to instantiate [org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar]: Factory method 'servletEndpointRegistrar' threw exception;
nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'healthEndpoint' defined in class path resource
org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Unsatisfied dependency expressed through method 'healthEndpoint' parameter 1;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthIndicatorRegistry' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthIndicatorAutoConfiguration.class]: Bean instantiation via factory method failed
Любые полезные советы?