报错信息
java.lang.IllegalStateException: javax.websocket.server.ServerContainer not availabl
报错原因
undertow 引入了undertow-websockets-jsr jar包冲突了
解决方法
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-undertow</artifactId>
<exclusions>
<exclusion>
<groupId>io.undertow</groupId>
<artifactId>undertow-websockets-jsr</artifactId>
</exclusion>
</exclusions>
</dependency>