![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springCloud问题汇总
zxf_noimp
这个作者很懒,什么都没留下…
展开
-
调用注册到eureka server上的微服务,通过微服务名字调用,获取服务实例慢或者失败的问题
EurekaClient启动以后,不是立即向Eureka Server注册的,而是有一个延迟向服务端注册的时间,通过跟踪源码,可以发现模式延迟时间为40秒; 如果还没有注册,则会抛出:使用 RestTemplate 报java.lang.IllegalStateException:No instances available for localhost //微服务的真实名字为eurek...原创 2019-03-09 08:32:26 · 6926 阅读 · 1 评论 -
解决SpringBoot打包成jar后运行提示没有主清单属性
在当前应用(或父pom.xml)下的pom.xml文件中加入: <build> <plugins> <!--解决SpringBoot打包成jar后运行提示没有主清单属性 --> <plugin> <groupId>org.springfram...原创 2019-03-08 14:41:49 · 3345 阅读 · 1 评论 -
springboot+redis 抛异常Cannot find the class file for org.springframework.data.redis.core.ZSetOperation
Description Resource Path Location Type The project was not built since its build path is incomplete. Cannot find the class file for org.springframework.data.redis.core.ZSetOperations$Type...原创 2019-03-09 11:10:39 · 806 阅读 · 0 评论 -
spring-boot子模块打包去掉BOOT-INF文件夹
1.spring-boot maven打包,一般pom.xml文件里会加 <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> 这样打...转载 2019-03-20 17:09:30 · 513 阅读 · 0 评论