@sharable handler,so can't be added or removed multiple times

@sharable handler,so can't be added or removed multiple times

1.场景

            netty集成springboot出现如上报错,像网上的事例,大部分都是没有继承springboot,例如下面代码

@sharable handler,so can't be added or removed multiple times

集成springboot的代码:

因是通过注入的方式,而不是通过new

解决方案:

增加@Sharable注解

@sharable handler,so can't be added or removed multiple times 

     

相关文章:

  • 2021-11-06
  • 2021-10-01
  • 2021-06-25
  • 2021-04-24
  • 2022-01-28
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-06
  • 2021-10-13
  • 2021-09-06
  • 2021-09-05
  • 2022-12-23
  • 2021-05-08
相关资源
相似解决方案