This application has no explicit mapping for /error, so you are seeing this as a

Dear 丶 2022-04-06 11:37 267阅读 0赞

访问Springboot的actuator的健康页面报错

  1. Whitelabel Error Page
  2. This application has no explicit mapping for /error, so you are seeing this as a fallback.
  3. Fri Nov 03 11:38:21 GMT+08:00 2017
  4. There was an unexpected error (type=Unauthorized, status=401).
  5. Full authentication is required to access this resource.

1、加入actuator的maven依赖

  1. <dependency>
  2. <groupId>org.springframework.boot</groupId>
  3. <artifactId>spring-boot-starter-actuator</artifactId>
  4. </dependency>

2、配置文件application.properties中加入

  1. ## 无权限访问
  2. management.security.enabled=false

发表评论

表情:
评论列表 (有 0 条评论,267人围观)

还没有评论,来说两句吧...

相关阅读