Issue with Eureka Discovery

Consumer 端 Server Discovery的问题困扰了几个小时。主体为Register正常,但Discovery无法正常工作,无论是在Gateway还是OpenFeign,最终原因很简单,就是Register的服务没有配置 `spring.application.name`,Eureka不会将其放入Instance List中,从而在Consumer端无法通过serverId获取到对应的Instance

这个印象中,初次学的时候有讲过的,只是过了太久,忘了….

Leave a Reply

Your email address will not be published. Required fields are marked *

lWoHvYe 无悔,专一