在application.properties文件中可以自定义eureka生产和消费者ip
server.port=8080
eureka.instance.prefer-ip-address=true
eureka.instance.ip-address=192.168.0.111
eureka.instance.instance-id = ${eureka.instance.ip-address}:${server.port}
在application.properties文件中可以自定义eureka生产和消费者ip
server.port=8080
eureka.instance.prefer-ip-address=true
eureka.instance.ip-address=192.168.0.111
eureka.instance.instance-id = ${eureka.instance.ip-address}:${server.port}