Java 使用弹簧执行机构时是否需要添加弹簧腹板?

Java 使用弹簧执行机构时是否需要添加弹簧腹板?,java,spring,maven,spring-mvc,Java,Spring,Maven,Spring Mvc,我正在尝试将公司的Spring执行器应用到我的应用程序中。我在pom.xml中添加了依赖项: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> <version>1.4.2.RELEASE</versi

我正在尝试将公司的Spring执行器应用到我的应用程序中。我在pom.xml中添加了依赖项:

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

org.springframework.boot
弹簧靴起动器执行器
1.4.2.1发布

但是我在尝试访问
/health
端点时得到了404。在线查看之后,我了解到我的POM中还需要
springbootstarterweb
依赖项。我的假设是,我只需要执行器依赖项才能使其工作

如果您希望从web访问它们,那么显然也需要web部件。您可以通过使用创建项目来测试需要哪些依赖项-这将证实您怀疑您需要web启动程序