我做了一个权限组件,打成jar包放到业务系统的lib下,在业务系统的web.xml里面,配置如下:

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath*:modules/spring.xml;classpath*:modules/daoContext.xml;classpath*:modules/**/spring-conf/*.xml;
</param-value>
</context-param>

<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>

通配符对应的路径是对的,但jar里面的bean并没有在容器启动的时候创建,也无法在运行过程中获取,听说jar包里面的xml文件不能用通配符来定位,请问应该如何设置呢?在网上搜索了很多还是搜索不到解决办法,Spring的Reference也没有解释。
评论
dingyuan 2008-01-06
xml文件不能打入jar包里面
发表评论

提醒: 该博客已发表在公共论坛,博客所有留言会成为论坛回贴,留言请注意遵守论坛发贴规则

您还没有登录,请登录后发表评论

johnnylzb
搜索本博客
博客分类
最近加入圈子
存档
最新评论