TipsDBConfigListener
生活随笔
收集整理的這篇文章主要介紹了
TipsDBConfigListener
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
為什么80%的碼農(nóng)都做不了架構(gòu)師?>>> ??
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;} }轉(zhuǎn)載于:https://my.oschina.net/scotts/blog/115931
總結(jié)
以上是生活随笔為你收集整理的TipsDBConfigListener的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 关于Spring 中的PortletMo
- 下一篇: 黑马程序员_网络编程总结