009bd5f2b4d2b11a1a43f69c236cd31328ed3da5.svn-base
931 Bytes
package com.thinkgem.jeesite.modules.sys.listener;
import javax.servlet.ServletContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.context.WebApplicationContext;
import com.thinkgem.jeesite.common.config.Global;
import com.thinkgem.jeesite.modules.sys.service.SystemService;
public class WebContextListener extends org.springframework.web.context.ContextLoaderListener {
private Logger logger = LoggerFactory.getLogger(getClass());
@Override
public WebApplicationContext initWebApplicationContext(ServletContext servletContext) {
if (!SystemService.printKeyLoadMessage()){
return null;
}
logger.info("权籍系统 Global.isTitle() == {}" ,Global.isTitle());
logger.info("一窗系统 Global.isYcsl() == {}" ,Global.isYcsl());
logger.info("是否测试 Global.isTest() == {}" ,Global.isTest() );
return super.initWebApplicationContext(servletContext);
}
}