- 更新 application.properties
1
2
3
4
5
6
7
8
9
10
11
12
spring.management.security.enabled=true
spring.security.basic.enabled=true
spring.security.user.name=admin
spring.security.user.password=admin
management.endpoints.web.base-path=/
management.endpoints.web.exposure.include=*
info.app.name=@project.name@
info.app.description=@project.description@
info.app.version=@project.version@
info.app.spring-boot-version=@project.parent.version@