Is it necessary to add Spring Web when using Spring Actuator?

时间:2017-06-15 09:28:09

标签: java spring maven spring-mvc

I'm trying to in corporate Spring Actuator to my application. I have added the dependency in my pom.xml:

<dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-actuator</artifactId>
        <version>1.4.2.RELEASE</version>
    </dependency>

But I get a 404 when trying to access the /health endpoint. After looking online, I've read that I need to also have the spring-boot-starter-web dependency in my POM. I was under the assumption that I only need the actuator dependency in order to get it working

0 个答案:

没有答案