print
?
- <context-param>
- <param-name>contextConfigLocation</param-name>
- <param-value>
- classpath*:com/founsys/module/login/spring/applicationContext*.xml
- </param-value>
- </context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath*:com/founsys/module/login/spring/applicationContext*.xml
</param-value>
</context-param>
要加载jar包中的com/founsys/module/login/spring下的配置文件,如上配置应该就是可以加载本地的com/founsys/module/login/spring下的以applicationContext开头的配置文件,和jar包中的com/founsys/module/login/spring下的所有以applicationContext开头的配置文件,但是事实上,仅仅加载了本地的配置文件,而jar包中的xml文件没有加载,如果要加载jar中的配置文件,只能这样一个一个加载
- <context-param>
- <param-name>contextConfigLocation</param-name>
- <param-value>
- classpath*:/com/founsys/module/login/spring/applicationContext-login-action.xml,
- classpath*:/com/founsys/module/login/spring/applicationContext-login-dao.xml,
- classpath*:/com/founsys/module/login/spring/applicationContext-login-service.xml
- </param-value>
- </context-param>