//
// 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);
}
}

最新文章

  1. C#-WebForm-文件上传-FileUpload控件
  2. HEAP CORRUPTION DETECTED :after Normal block 错误
  3. savepic
  4. angular中的MVVM模式
  5. kylin查询出现日期对应不上的情况
  6. jquery-uploadify 上传
  7. checkbox --jquery
  8. 判断字符串中是否有SQL攻击代码
  9. 黄聪:C# 开发Chrome内核浏览器(WebKit.net)
  10. Android 在程序中动态添加 View 布局或控件
  11. sqlserver 日期相关2
  12. UTF-8/UTF-16/UTF-32
  13. Linear Regression(线性回归)(二)—正规方程(normal equations)
  14. PHP 变量的实现原理
  15. validatebox相关验证
  16. SQLALlchemy数据查询小集合
  17. 使用Callable接口创建线程和使用线程池的方式创建线程
  18. 微信小程序自定义TabBar
  19. What You Can Learn from Actifio Logs
  20. 1.let命令总结

热门文章

  1. 电脑系统win7和samba服务器连接不上解决办法
  2. centos7部署nagios(二)
  3. mysql5.7使用gtid模式搭建主从复制架构
  4. java数据结构03
  5. 牛客假日团队赛5J 护城河 bzoj 1670: [Usaco2006 Oct]Building the Moat护城河的挖掘 (凸包的周长)
  6. java面向对象1-面向对象概念
  7. thinkphp5杂谈--项目架构和模板搭建(view视角)
  8. vue - 登录验证与权限控制
  9. 6. ClustrixDB 备份恢复
  10. html br标签 语法