server:
port: 10082 #服务端口
spring:
application:
name: eruekaserver #eureka的服务名称
eureka:
client:
service-url:
defaultZone: http://localhost:10082/eureka/
配置没啥问题 但是依然报错…
检查了一遍还是啥也没发现
后来搜到在client 加上:
fetch-registry: false //不作为注册中心
spring终于运行啦 但是依然在搜http://localhost:10082/eureka/
时404报错…
但是 正确应该是直接搜http://localhost:10082/端口:
两个字 泪目