Spring对ant风格的资源地址支持
在书中看到这样的一句配置
<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate" p:dataSource-ref="dataSource"/>
度娘了一下,Spring2.0提供了一个非常实用的解析器SimplePropertyNamespaceHandle,需要在配置文件中引用命名空间
http://www.springframework.org/schema/p,这样配置就更简单了。网易上的一篇文章。
Ant风格资源地址支持3种匹配符
开始做项目的时候,看到项目中类似的配置,感觉好高深的,了解了也不过尔尔
classpath:com/t?st.xml
file:D:/conf/*.xml
classpath:com/**/test.xml
classpath:com/**/*.xml
classpath:org/**/servlet/bla.xml
原文:http://www.cnblogs.com/lovery/p/3687751.html