@Override
public Set<ServerEndpointConfig> getEndpointConfigs(
Set<Class<? extends Endpoint>> scanned) {
Set<ServerEndpointConfig> result = new HashSet<ServerEndpointConfig>();
if (scanned.contains(WebSocket.class)) {
result.add(ServerEndpointConfig.Builder.create( WebSocket.class, "/webSocket").build());
}
System.out.println("config……………………" + result.size());
return result;
}指定了webSocket服务的路径为:
/webSocket
访问:ws://localhost:8080/web/webSocket时,貌似被JFinalFilter拦截了。被拦截到了IndexController的路径"/"下。
不知道该怎么办?
项目:JFinal