web.xml 加入代码
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
本文介绍如何在web.xml中配置contextConfigLocation参数,以便加载外部的applicationContext.xml文件,这对于整合Spring框架至关重要。
web.xml 加入代码
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
961

被折叠的 条评论
为什么被折叠?