Tag:code generation

  • JeecgBoot’s improvement plan for websocket

    Time:2022-10-29

    1. Environment description JeecgBoot3.0 2. websocket authority authentication Comment out in the shiroConfig.java code filterChainDefinitionMap.put(“/websocket/**”, “anon”);//System notifications and announcements Configure the interceptor package org.jeecg.config.websocket; import org.apache.commons.lang.StringUtils; import org.springframework.http.server.ServerHttpRequest; import org.springframework.http.server.ServerHttpResponse; import org.springframework.http.server.ServletServerHttpRequest; import org.springframework.http.server.ServletServerHttpResponse; import org.springframework.stereotype.Component; import org.springframework.web.socket.WebSocketHandler; import org.springframework.web.socket.server.support.HttpSessionHandshakeInterceptor; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.util.Map; @Component public class HandshakeInterceptor extends HttpSessionHandshakeInterceptor { @Override public […]