The classpath*: prefix
来源:互联网 发布:滚雪球官网数据档案 编辑:程序博客网 时间:2024/06/08 05:15
http://static.springsource.org/spring/docs/1.2.x/reference/resources.html
4.7.2. The classpath*: prefix
When constructing an XML-based application context, a location string may use the special classpath*: prefix:
ApplicationContext ctx = new ClassPathXmlApplicationContext("classpath*:conf/appContext.xml");
This special prefix specifies that all classpath resources that match the gven name should be obtained (internally, this essentially happens via aClassLoader.getResources(...) call), and then merged to form the final application context definition.
One use for this mechanism is when doing component-style application assembly. All components can 'publish' context definition fragments to a well-known location path, and when the final application context is created using the same path prefixed viaclasspath*:, all component fragments will be picked up automatically.
Note that this special prefix is specific to application contexts, and is resolved at construction time. It has nothing to do with theResource type itself. It's not possible to use the classpath*: prefix to construct an actual Resource, as a resource points to just one resource at a time.
- The classpath*: prefix
- The Longest Prefix
- The REP prefix
- Mastering the Java CLASSPATH
- Mastering the Java CLASSPATH
- Mastering the java CLASSPATH
- Setting the classpath
- USACO 2.3 The Longest Prefix (prefix)
- USACO2.3.1 The Longest Prefix (prefix)
- USACO2.3.1 The Longest Prefix (prefix)
- Mastering the classpath with JWhich
- USACO 2.3.1The Longest Prefix
- USACO Section 2.3 The Longest Prefix
- Attribute is missing the Android namespace prefix
- Find the first covering prefix of array
- Attribute is missing the Android namespace prefix
- Attribute is missing the Android namespace prefix
- Attribute is missing the Android namespace prefix
- 值类型和引用类型
- system和exec、spawn这两个函数族的函数的区别
- 第五届全国ITAT教育工程就业技能大赛复赛试题 Java程序设计(A卷)答案
- 关于启用EBS应收票据的设置
- Django ORM返回QuerySets的某些函数
- The classpath*: prefix
- 细说PHP5中的接口
- Ubuntu11.10下手工安装eclipse3.7.1详细步骤
- Activity生命周期
- WMI CIM_DATAFILE的33个属性
- Vector学习笔记
- JAXB
- 博客代码大全
- matlab中用spline代替solve/finvers求反函数