TipsDBConfigListener
生活随笔
收集整理的這篇文章主要介紹了
TipsDBConfigListener
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
為什么80%的碼農都做不了架構師?>>> ??
package org.tips.dao.config;import javax.servlet.ServletContext; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener;/**** sql保存路徑* @author tips**/ public class TipsDBConfigListener implements ServletContextListener {private static String path = "";public void contextDestroyed(ServletContextEvent arg0) {}public void contextInitialized(ServletContextEvent arg0) {ServletContext sc = arg0.getServletContext();path = sc.getInitParameter("tips_sql_map");}public static String getPath() {return path;} }轉載于:https://my.oschina.net/scotts/blog/115931
總結
以上是生活随笔為你收集整理的TipsDBConfigListener的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 关于Spring 中的PortletMo
- 下一篇: 黑马程序员_网络编程总结