eureka:
instance:
statusPageUrlPath: ${management.context-path}/info
healthCheckUrlPath: ${management.context-path}/health
metadata-map:
management.context-path: ${management.context-path}
prefer-ip-address: true
client:
serviceUrl:
defaultZone: http://registry:7000/eureka/
答案 0 :(得分:0)
哦F k,只是一个错误,将/ mgmt / *改为/ mgmt / ,它有效。
http.authorizeRequests()
.antMatchers("/" , "/mgmt/**","/jolokia","/jolokia/**").permitAll()