lxw
2023-08-27 b95a38eddc78e39bd82237e794ae30fe6e19b8cc
Merge branch 'master' of http://118.89.139.230:10101/r/~whyclxw/EnvirMonitorSys
2个文件已修改
8 ■■■■ 已修改文件
src/main/java/com/whyc/EnvirMonitorSysApplication.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/filter/CrossDomainFilter.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/EnvirMonitorSysApplication.java
@@ -2,8 +2,12 @@
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
@SpringBootApplication
@EnableWebMvc
@ServletComponentScan
public class EnvirMonitorSysApplication {
    public static void main(String[] args) {
src/main/java/com/whyc/filter/CrossDomainFilter.java
@@ -49,12 +49,12 @@
                resp.setStatus(202);
                return;
            }
            HttpServletRequestWrapper wrapper = new HttpServletRequestWrapper((HttpServletRequest)req);
            /*HttpServletRequestWrapper wrapper = new HttpServletRequestWrapper((HttpServletRequest)req);
            if(servletPath.equals("/index.html") && req.getParameter("n") == null) {
                RequestDispatcher dispatcher = wrapper.getRequestDispatcher("/");
                dispatcher.forward(request, resp);
                return;
            }
            }*/
        }
        chain.doFilter(request, resp);