Error creating bean with name 'serverEndpointExporter' defined in class path

出现这个错的原因是在部署项目的时候,项目中含有websocket的@ServerEndpoint注解的时候,如果项目是springboot项目,去除内置tomcat的时候会把websocket的包也给删除掉,所以需要手动加上.加上这个包,然后再打war包,部署到linux的tomcat下就没问题了. 相关解决方案参考: https://blog.csdn.net/kxj19980524/article/details/88751114 https://www.cnblogs.com/jiduoduo/p/14902967.html https://blog.csdn.net/qq_27101653/article/details/85072241

2023年3月30日 23:01
587
0