我是靠谱客的博主 幸福冷风,最近开发中收集的这篇文章主要介绍spring boot连接eureka的时候,statusPageUrlPath、healthCheckUrlPath的配置,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
--- spring: profiles: same.port server: port: ${SERVER_PORT:8089} context-path: ${SERVER_CONTEXTPATH:} management: context-path: ${MANAGEMENT_CONTEXTPATH:} port: ${MANAGEMENT_PORT:${server.port:${SERVER_PORT:8080}}} eureka: client: serviceUrl: defaultZone: http://localhost:8761/eureka/ instance: preferIpAddress: false statusPageUrlPath: ${server.context-path:${SERVER_CONTEXTPATH:}}${management.context-path:${MANAGEMENT_CONTEXTPATH:}}${endpoints.info.path:/info} healthCheckUrlPath: ${server.context-path:${SERVER_CONTEXTPATH:}}${management.context-path:${MANAGEMENT_CONTEXTPATH:}}${endpoints.health.path:/health} metadata-map: management.context-path: ${server.context-path:${SERVER_CONTEXTPATH:}}${management.context-path:${MANAGEMENT_CONTEXTPATH:}} management.port: ${management.port:${MANAGEMENT_PORT:${server.port:${SERVER_PORT:8080}}}} --- spring: profiles: seperated.mgmt.port server: port: ${SERVER_PORT:8087} context-path: ${SERVER_CONTEXTPATH:} management: context-path: ${MANAGEMENT_CONTEXTPATH:} port: ${MANAGEMENT_PORT:8088} eureka: client: serviceUrl: defaultZone: http://localhost:8761/eureka/ instance: preferIpAddress: false # Don't use bellow config for seperated management port # statusPageUrlPath: ${management.context-path:${MANAGEMENT_CONTEXTPATH:}}${endpoints.info.path:/info} # healthCheckUrlPath: ${management.context-path:${MANAGEMENT_CONTEXTPATH:}}${endpoints.health.path:/health} status-page-url: http://${eureka.instance.hostname:localhost}:${management.port:${MANAGEMENT_PORT:8088}}${management.context-path:${MANAGEMENT_CONTEXTPATH:}}${endpoints.info.path:/info} health-check-url: http://${eureka.instance.hostname:localhost}:${management.port:${MANAGEMENT_PORT:8088}}${management.context-path:${MANAGEMENT_CONTEXTPATH:}}${endpoints.health.path:/health} metadata-map: management.context-path: ${management.context-path:${MANAGEMENT_CONTEXTPATH:}} management.port: ${management.port:${MANAGEMENT_PORT:${server.port:${SERVER_PORT:8088}}}}
最后
以上就是幸福冷风为你收集整理的spring boot连接eureka的时候,statusPageUrlPath、healthCheckUrlPath的配置的全部内容,希望文章能够帮你解决spring boot连接eureka的时候,statusPageUrlPath、healthCheckUrlPath的配置所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复