解决方法是在客户端配置文件中添加
server:
port: 10001
eureka:
client:
register-with-eureka: false
fetch-registry: false
serviceUrl:
defaultZone: http://localhost:10001/eureka
security:
basic:
enabled: false
转自:https://blog.csdn.net/lala12d/article/details/89017005
原文:https://www.cnblogs.com/xyyou/p/11625044.html