web.xml中classpath和classpath*的区别
来源:互联网 发布:游戏币交易平台源码 编辑:程序博客网 时间:2024/05/17 03:23
classpath 和 classpath* 区别:
classpath:只会到你指定的class路径中查找找文件;
classpath*:不仅包含class路径,还包括jar文件中(class路径)进行查找.
举个简单的例子,在我的web.xml中是这么定义的:classpath*:META-INF/spring/application-context.xml
那么在META-INF/spring这个文件夹底下的所有application-context.xml都会被加载到上下文中,这些包括META-INF/spring文件夹底下的 application-context.xml,META-INF/spring的子文件夹的application-context.xml以及jar中的application-context.xml。
如果我在web.xml中定义的是:classpath:META-INF/spring/application-context.xml
那么只有META-INF/spring底下的application-context.xml会被加载到上下文中。
0 0
- 在web.xml中classpath和classpath*的区别
- 在web.xml中classpath和classpath*的区别
- 在web.xml中classpath和classpath*的区别
- 在web.xml中classpath和classpath*的区别
- web.xml中classpath:和classpath*:的区别
- web.xml中classpath和classpath*的区别
- web.xml中classpath和classpath*的区别
- web.xml中classpath和classpath*的区别
- 在web.xml中classpath和classpath*的区别
- web.xml中classpath和classpath*的区别
- 在web.xml中classpath和classpath*的区别
- 在web.xml中classpath和classpath*的区别
- 在web.xml中classpath和classpath*的区别
- javaweb项目中web.xml配置classpath 和 classpath* 区别
- web.xml中classpath:和classpath*: 有什么区别
- web.xml 配置中classpath: 与classpath*:的区别
- web.xml 中 classpath*:与classpath:的区别
- web.xml 配置中classpath: 与classpath*:的区别
- jsp页面使用标签格式化数字或时间
- ≪统计学习精要(The Elements of Statistical Learning)≫课堂笔记(七)
- Android组件化实战
- Qt禁用鼠标之后的问题
- mina框架之一
- web.xml中classpath和classpath*的区别
- ≪统计学习精要(The Elements of Statistical Learning)≫课堂笔记(八)
- WPF样式的使用
- mina框架之二
- ≪统计学习精要(The Elements of Statistical Learning)≫课堂笔记(九)
- Leetcode 156. Binary Tree Upside Down (Medium) (cpp)
- ubuntu下 apache2 开启/关闭模块方法
- 实时日志收集-查询-分析系统(Flume+ElasticSearch+Kibana)
- javascript—1