三. 配置actuator - summerhll/Spring-Boot-demo GitHub Wiki

步骤:

  1. pom.xml 添加配置
     <dependency>
     	<groupId>org.springframework.boot</groupId>
     	<artifactId>spring-boot-starter-actuator</artifactId>
     </dependency>
    

2. 配置文件修改 在application.properties中添加: management.security.enabled=false ps: 这句话必须要配置,否则输入http://localhost:8080/beans会报错。

报错信息为:

3.访问: http://localhost:8080/beans 在地址栏上输入上面的地址就可以访问了

相关网址: http://www.open-open.com/lib/view/open1486282830132.html https://www.jianshu.com/p/b0b40038bb93

⚠️ **GitHub.com Fallback** ⚠️