Unauthorized in spring boot admin

后端 未结 4 1405
遥遥无期
遥遥无期 2021-02-07 22:38

I wanted to control the microservices that are running in the Eureka server. I used spring-boot-admin for this, but I am getting the error on accessing the information about the

4条回答
  •  北恋
    北恋 (楼主)
    2021-02-07 22:41

    It's better to setup security by credentials username and password for most of endpoints listed here: https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-endpoints.html

    Exceptions from the rule are health and info endpoints which won't be protected by credentials.

    You can set username and password in application.properties like that:

    security.user.name=admin
    security.user.password=secret
    

提交回复
热议问题