San*_*eep 4 java stomp netty spring-rabbit spring-boot
我正在使用 RabbitMQ 设置 Springboot 2.1.4。该项目在一个简单的代理上运行良好,但是在使用 RabbitMQ 切换到 Stomp 代理中继时,应用程序启动失败并出现以下错误。
2019-04-19 18:32:36.841 INFO 80706 --- [main] ossconcurrent.ThreadPoolTaskExecutor: 关闭 ExecutorService 'clientOutboundChannelExecutor' 2019-04-19 18:32:36.807.ThreadosExecutor --- [main] ossconcurrent.ThreadPoolTaskExecutor关闭 ExecutorService 'clientInboundChannelExecutor' 2019-04-19 18:32:36.845 INFO 80706 --- [main] o.apache.catalina.core.StandardService : 停止服务 [Tomcat] 2019-04-19 18.862: INFO6 80706 --- [主要] ConditionEvaluationReportLoggingListener:启动ApplicationContext 时出错。要显示条件报告,请在启用“调试”的情况下重新运行您的应用程序。2019-04-19 18:32:36.871 错误 80706 --- [main] osboot.SpringApplication:应用程序运行失败 org.springframework.context。ApplicationContextException:无法启动 bean 'stompBrokerRelayMessageHandler';嵌套异常是 java.lang.NoClassDefFoundError: io/netty/util/concurrent/EventExecutor at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:185) ~[spring-context-5.1.6.RELEASE.jar :5.1.6.RELEASE] 在 org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:53) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] 在 org. springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:360) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] 在 org.springframework.context.support.DefaultLifecycleProcessor.startBeans (DefaultLifecycleProcessor.java:158) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.
小智 11
还有一个依赖项,您需要添加。可能是你错过了这个。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-reactor-netty</artifactId>
</dependency>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2507 次 |
| 最近记录: |