在pom.xml里边添加
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
启动之后访问/beans.报401错误,无法访问,在网上找了一下,只需要在application.properties里边添加
management.security.enabled=false
就能正常访问了
留下做个记录,方便以后查找