spring webapplication context initialization hook ?# Java - 爪哇娇娃
c*n
1 楼
for regular servlet, I guess you could declare context listener:
http://docs.oracle.com/javaee/5/api/javax/servlet/ServletContex
but for Spring MVC, would spring make this easier?
furthermore, if I define a context listener, let's say I would need to
access the beans defined before in my servlet.xml or applicationContext.xml,
how could I get access to them?
Thanks
http://docs.oracle.com/javaee/5/api/javax/servlet/ServletContex
but for Spring MVC, would spring make this easier?
furthermore, if I define a context listener, let's say I would need to
access the beans defined before in my servlet.xml or applicationContext.xml,
how could I get access to them?
Thanks