这是环境版本:
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<spring-boot.version>2.2.0.RELEASE</spring-boot.version>
<spring-cloud-alibaba.version>2.2.0.RELEASE</spring-cloud-alibaba.version>
<spring-cloud.version>Hoxton.SR1</spring-cloud.version>
<skipTest>true</skipTest>
</properties>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zipkin</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-sleuth</artifactId>
</dependency>
可以运行 然后集成分布式session(单独redis没问题 集成session-redis启动报错)
<groupId>org.springframework.session</groupId>
<artifactId>spring-session-data-redis</artifactId>
</dependency>
报错如下:
2020/04/08-13:12 [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker -Bean 'spring.sleuth.redis-org.springframework.cloud.sleuth.instrument.redis.TraceRedisProperties' of type [org.springframework.cloud.sleuth.instrument.redis.TraceRedisProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2020/04/08-13:12 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer -Tomcat initialized with port(s): 9990 (http) 2020/04/08-13:12 [main] INFO org.apache.catalina.core.StandardService -Starting service [Tomcat] 2020/04/08-13:12 [main] INFO org.apache.catalina.core.StandardEngine -Starting Servlet engine: [Apache Tomcat/9.0.27] 2020/04/08-13:12 [main] INFO o.a.c.c.C.[Tomcat].[localhost].[/order-server] -Initializing Spring embedded WebApplicationContext 2020/04/08-13:12 [main] INFO org.springframework.web.context.ContextLoader -Root WebApplicationContext: initialization completed in 1537 ms 2020/04/08-13:12 [main] WARN o.s.cloud.sleuth.zipkin2.ZipkinAutoConfiguration -Check result of the *[AsyncReporter{org.springframework.cloud.sleuth.zipkin2.sender.RestTemplateSender@48eb001a}] contains an error [CheckResult{ok=false, error=org.springframework.web.client.HttpClientErrorException$BadRequest: 400 Bad Request}] 2020/04/08-13:12 [main] INFO *io.lettuce.core.EpollProvider -Starting without optional epoll library 2020/04/08-13:12 [main] INFO io.lettuce.core.KqueueProvider -Starting without optional kqueue library
如果需要的话,可能自己要去实现对应的执行器。 o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker -Bean 'spring.sleuth.redis-org.springframework.cloud.sleuth.instrument.redis.TraceRedisProperties' of type [org.springframework.cloud.sleuth.instrument.redis.TraceRedisProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
这个应该是不好使
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。