请期待...

看来很多同学不需要聊天功能,但是又想优雅的移除聊天模块。

将以下2个地方注释掉即可。

前台jsp页面:sysIndex.jsp#16 <%@ include file="/webpage/include/layIM-init.jsp"%>

后台java:WebSocketConfig.java#24,25

//注册layIM socket服务
        registry.addHandler(layImSocketHandler(),"/layIMSocketServer").addInterceptors(new LayIMSocketHandshakeInterceptor());
        registry.addHandler(layImSocketHandler(), "/sockjs/layIMSocketServer").addInterceptors(new LayIMSocketHandshakeInterceptor())
                .withSockJS();