SpringBoot之Actuator

在pom中添加依赖

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

然后发现只有/health可以调用,其他信息都不可见。

在yml中加入,可以看一切信息了。

management:
  security:
    enabled: false

猜你喜欢

转载自dan326714.iteye.com/blog/2407501