liuxiaolong
2019-05-09 0d1d88cdb668e75ea8609417ac18ae19947e9525
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.jeeplus.modules.sys.listener;
 
import javax.servlet.ServletContext;
 
import org.springframework.web.context.WebApplicationContext;
 
import com.jeeplus.modules.sys.service.SystemService;
 
public class WebContextListener extends org.springframework.web.context.ContextLoaderListener {
    
    @Override
    public WebApplicationContext initWebApplicationContext(ServletContext servletContext) {
        if (!SystemService.printKeyLoadMessage()){
            return null;
        }
        return super.initWebApplicationContext(servletContext);
    }
}