时间的法外狂徒

导航

2020年5月7日 #

springcloud相关组件使用时的jar包

摘要: 1、eureka服务端的使用 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId> </depende 阅读全文

posted @ 2020-05-07 23:55 抄手砚 阅读(469) 评论(0) 推荐(0) 编辑

springcloud版本号

摘要: springcloud使用的版本号是英文方式,而不是传统的数字版本,为什么呢。因为springcloud是微服务的解决方案,他会有很多子项目,每个子项目都维护这自己的版本号,为了避免冲突,就使用了伦敦地铁站的名字作为版本号。以首字母作为顺序,a,b,c,d....排列。 现有版本号:Angel、Br 阅读全文

posted @ 2020-05-07 23:45 抄手砚 阅读(3965) 评论(0) 推荐(0) 编辑

@EnableDiscoveryClient和@EnableEurekaClient的区别

摘要: 简单区分下,他们在功能上是一致的:写在启动类的上,开启服务注册发现功能。 不同的是,当注册中心不一样时,像:eureka、consul、zookeeper,使用是也有了区别。 EnableDiscoveryClient注解在common包中,通过项目的classpath来决定使用哪种实现,而Enab 阅读全文

posted @ 2020-05-07 22:12 抄手砚 阅读(7620) 评论(0) 推荐(0) 编辑

在mvn构建时直接将项目jar包做成服务第三方工具

摘要: 只需要在pom文件中添加: <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <!-- 阅读全文

posted @ 2020-05-07 19:30 抄手砚 阅读(208) 评论(0) 推荐(0) 编辑