摘要: 服务端 请见 http://www.cnblogs.com/huiy/p/8668005.html客户端:主启动类import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;import org.springframewor... 阅读全文
posted @ 2018-03-29 15:24 huiy_小溪 阅读(589) 评论(0) 推荐(0) 编辑
摘要: 在写客户端程序的时候,总是报'com.netflix.discovery.DiscoveryClient' that could not be found。原因在于导入了错误的类:com.netflix.discovery.DiscoveryClient应该是引用:org.springframework.cloud.client.discovery.DiscoveryClient 阅读全文
posted @ 2018-03-29 14:56 huiy_小溪 阅读(667) 评论(0) 推荐(0) 编辑
摘要: 环境:springboot 2.0.0 + springcloud Finchley.M9pom.xml: 4.0.0 net.common eureka-server 1.0.0 jar eureka-server 基本web org.springframework.boot spring-boot-starter-p... 阅读全文
posted @ 2018-03-29 09:29 huiy_小溪 阅读(1295) 评论(0) 推荐(0) 编辑