发现jsf + spring在jboss中的一个问题

来源:互联网 发布:js new date精确到秒 编辑:程序博客网 时间:2024/05/23 23:16
在web.xml中指定spring配置文件位置时:
<context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>classpath:applicationContext*.xml</param-value>
</context-param>
这样在tomcat中是没问题的,而在jboss中有问题。将其改为:
<context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>classpath:applicationContext.xml</param-value>
</context-param>
就没问题了。也就是说在jboss中用classpath时,通配符无效。而在WEB-INF下可以。不解。
原创粉丝点击