启动项目注册@ServerEndpoint注解类的时候会报异常
Cannot deploy POJO class [com.xxx.WebSocketServer$EnhancerBySpringCGLIB$$62689f33] as it is not annotated with @ServerEndpoint
具体报错就不截图了,能看出来是因为Springboot代理导致的,如果按照网上的@Transactional和@Aspect两个注解导致的方式排查完,还是解决不了,可以看看是否项目用了阿里巴巴的druid,并且配置了aop-patterns,导致的类被代理