- Spring boot 版本:
2.2.1.RELEASE
- Spring cloud 版本 :
Hoxton.RC1
项目中同时使用了
- spring-cloud-starter-zipkin
- spring-boot-starter-data-redis
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zipkin</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
//www.1b23.com
在编码中有多个Service同时注入了RedisTemplate<String, String> redisTemplate导致在Tomcat启动时报错,导致无法运行。
错误如下
[ main] o.a.c.loader.WebappClassLoaderBase : The web application
[ROOT] appears to have started a thread named [lettuce-eventExecutorLoop-1-1] but has failed to stop it. This is very likely to create a memory leak.
Stack tra