文章目录
一、使用参考文档:https://www.cnblogs.com/quchengfeng/p/4930922.html
二、G4工程禁用方法
step1、在工程启动类设置xwork.profile.activate属性,在工程启动类SpringApplication.run()方法前添加一行:System.setProperty(“xwork.profile.activate”, “false”),如下:
@SpringBootApplication(scanBasePackages = "com.dhgate", exclude = {DataSourceAutoConfiguration.class, DataSourceTransactionManagerAutoConfiguration.class})
public class StartUp {
public static void main(String[] args) {
System.setProperty("xwork.profile.activate", "false");// 禁用struts内置性能诊断功能
SpringApplication.run(StartUp.class, args);
}
}
step2、打开struts.xml配置文件,注释掉默认的拦截器栈,把默认的拦截器栈里面配置的拦截器从struts-default.xml中复制过来,并注释掉debugging拦截器:
参考文档:
1、https://www.cnblogs.com/suxiaolei/archive/2011/11/04/2236181.html
2、https://www.cnblogs.com/quchengfeng/p/4930922.html