正在加载图片...
guokehua(@yahoo.com.cn oy Java 另一种方法:用 Listener接口( Servlet23以上使用) (1)建立一个Web项目,在 web. xm中加入 <context-param> <param-name >contextConfigLocation</ param -name> < parain- value>路径</ parain-va1ue> 10101</context-paranm <listener> <listener- class>org. springframework web context. Contextloderli stener</listener-class> </listener> 通过 WebApplicationContextUtils. getWebApplicationContext app1 Ication)得到Bean 郭克华J2EE框架实战教学视频oy Java! J guokehua@yahoo.com.cn 郭克华J2EE框架实战教学视频 另一种方法:用 另一种方法:用Listener Listener接口(Servlet2.3 Servlet2.3以上使用) • (1)建立一个Web项目,在web.xml中加入: <context-param> <param-name>contextConfigLocation</ param -name> <param-value>路径</param-value> </context-param > <listener> <listener￾class>org.springframework.web.context.ContextLoderLi stener</listener-class> </listener> 通过 WebApplicationContextUtils.getWebApplicationContext( application) 得到Bean
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有