tomcat 8.0
jdk1.8
@ServerEndpoint(value = "/websocket")方法
maven3.0
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>7.0</version>
<scope>provided</scope>
</dependency>
VM693:1 WebSocket connection to 'ws://localhost:8080/websocket' failed: Error during WebSocket handshake: Unexpected response code: 302
错误地址不是404吗?302也是地址错误吗?第一次接触这些望指教
本回答被网友采纳