springboot启动报错:java.lang.IllegalStateException: javax.websocket.server.ServerContainer not available
·
原因: spring boot内嵌tomcat,会和websocket产生冲突 解决方案:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
更多推荐
所有评论(0)