boot版本没有actuator

Blade 未结 1 83
pass
pass 剑圣 2025-07-14 17:42

一、该问题的重现步骤是什么?

1. boot版本访问/actuator 404



二、你期待的结果是什么?实际看到的又是什么?


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

org.springbladeBladeX-Bootjar4.6.0.RELEASE

四、请提供详细的错误堆栈信息,这很重要。

image.png

五、若有更多详细信息,请在下面提供。

1条回答
  • 2025-07-14 19:22

    需要引入actuator的依赖,比如

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

    然后进行配置

    management:
      endpoints:
        web:
          exposure:
            include: health,info,env


    0 讨论(0)
代码语言
提交回复