1 Star 0 Fork 42

mygitcodehost/RedPacket

forked from java110/RedPacket 
Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
InitStaticClass.java 717 Bytes
Copy Edit Raw Blame History
wuxw7 authored 2017-05-06 23:09 +08:00 . 开源红包系统
package com.java110.util;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import com.sun.xml.internal.ws.util.UtilException;
/**
* 静态资源加载类
* @author wuxw
* @date 2015-08-27
*
*/
public class InitStaticClass implements ServletContextListener{
public void contextInitialized(ServletContextEvent arg0){
// TODO Auto-generated method stub
//加载静态资源
StaticMapUtil staticMapUtil = new StaticMapUtil();
try {
staticMapUtil.init();
} catch (UtilException e) {
// TODO Auto-generated catch block
new InitStaticClass();
}
}
public void contextDestroyed(ServletContextEvent arg0) {
// TODO Auto-generated method stub
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/mygitcodehost/RedPacket.git
git@gitee.com:mygitcodehost/RedPacket.git
mygitcodehost
RedPacket
RedPacket
master

Search