【问题标题】:Spring boot 2 actuator without autoconfiguration没有自动配置的 Spring Boot 2 执行器
【发布时间】:2019-05-02 00:19:27
【问题描述】:

谁能帮我弄清楚如何在不使用自动配置依赖项的情况下启用执行器端点?

我正在开发一个 Spring-Boot 2 项目,但禁止启动 pom 和自动配置依赖项。

【问题讨论】:

  • 您好,@Lost_dev,您找到解决方案了吗?如果你写一个答案会很好,因为我遇到了同样的问题。

标签: spring-boot spring-boot-starter actuator


【解决方案1】:

尝试添加这个依赖:

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

如果你想全部启用,请将其添加到 application.properties 以启用执行器的所有端点。

  management.endpoints.web.exposure.include=*

【讨论】:

  • 感谢乔纳森的重播,但正如我在问题启动器 POM 依赖项中所述,不是一个选项。
猜你喜欢
  • 2018-08-29
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-12-11
  • 1970-01-01
  • 2020-02-17
  • 2018-11-29
  • 2017-01-19
相关资源
最近更新 更多