cvc-complex-type.2.4.c: but no declaration can be found for element 'websocket:h
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:websocket="http:/www.springframework.org/schema/websocket"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.3.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.3.xsd
http://www.springframework.org/schema/websocket
http://www.springframework.org/schema/websocket/spring-websocket-4.3.xsd ">
<websocket:handlers>
<websocket:mapping path="/IM" handler="MyWebSocketHandler"/>
<websocket:handshake-interceptors>
<bean class="org.springframework.web.socket.server.support.HttpSessionHandshakeInterceptor"/>
</websocket:handshake-interceptors>
</websocket:handlers>
</beans>
无法找到'websocket:handlers'定义,通过Ctrl+鼠标点击“http://www.springframework.org/schema/websocket/spring-websocket-4.3.xsd”是能打开的,并且能找到这个参数定义。 请高手找找原因,谢谢。 环境Spring4.3.2 + tomcat8 + jdk1.8