ContextLoader
2024-09-05 18:24:03
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
// package com.neusoft.unieap.core.listener; import com.neusoft.unieap.core.protection.ProtectionConfig;
import com.neusoft.unieap.core.protection.custom.CustomCheck;
import com.neusoft.unieap.core.validation.i18n.I18nGlobalContext;
import java.io.File;
import javax.servlet.ServletContext;
import org.springframework.web.context.ConfigurableWebApplicationContext; public class ContextLoader extends org.springframework.web.context.ContextLoader {
public ContextLoader() {
} protected void customizeContext(ServletContext servletContext, ConfigurableWebApplicationContext applicationContext) {
String licensePath = File.separator + "WEB-INF" + File.separator + "conf" + File.separator + "unieap" + File.separator + "license";
System.out.println("我是licensePath============="+licensePath);
I18nGlobalContext.getInstance().setServletContext(servletContext);
ProtectionConfig.filePath = applicationContext.getServletContext().getRealPath(licensePath);
System.out.println("ProtectionConfig.filePath============="+ProtectionConfig.filePath);
CustomCheck.getInstance().check(false);
}
}
最新文章
- C#-WebForm-文件上传-FileUpload控件
- HEAP CORRUPTION DETECTED :after Normal block 错误
- savepic
- angular中的MVVM模式
- kylin查询出现日期对应不上的情况
- jquery-uploadify 上传
- checkbox --jquery
- 判断字符串中是否有SQL攻击代码
- 黄聪:C# 开发Chrome内核浏览器(WebKit.net)
- Android 在程序中动态添加 View 布局或控件
- sqlserver 日期相关2
- UTF-8/UTF-16/UTF-32
- Linear Regression(线性回归)(二)—正规方程(normal equations)
- PHP 变量的实现原理
- validatebox相关验证
- SQLALlchemy数据查询小集合
- 使用Callable接口创建线程和使用线程池的方式创建线程
- 微信小程序自定义TabBar
- What You Can Learn from Actifio Logs
- 1.let命令总结