zoukankan      html  css  js  c++  java
  • ContextLoader

    //
    // 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);
        }
    }
  • 相关阅读:
    圣诞树
    删除临时表并且插入数据
    sql语句中查询用in的时候,按in的顺序来输出
    xmlhelper and excelhelper
    几个小知识点。
    根据页面上记录数和页面大小获取总页数
    SQL语句的疑问
    katie melua the closest thing to crazy
    something about table
    little things
  • 原文地址:https://www.cnblogs.com/Jeely/p/11403877.html
Copyright © 2011-2022 走看看