classpath
2015-06-10 08:35
295 查看
<?xml version="1.0" encoding="UTF-8"?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"> <!-- --> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:resources/applicationContext.xml</param-value> </context-param> <servlet> <servlet-name>chapter02</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:resources/abc.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>chapter02</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> </web-app>这里的
<param-value>classpath:resources/applicationContext.xml</param-value>
classpath指的是src下的文件,而
<param-value>applicationContext.xml</param-value>它会去找webroot下的文件
相关文章推荐
- stm32.cube(一)——系统架构及目录结构
- 第十四周程序阅读例二
- 第十三周项目二 形状类族中的纯虚函数
- 应用环境下的TIME_WAIT和CLOSE_WAIT处理
- linux驱动增加work工作队列和获取唤醒锁操作
- Workspace in use or cannot be created, choose a different one.
- 139 金正國 思齋 聽辨不詳 (金安國 弟)
- User survey(用户调研)
- 项目一
- 构建ASP.NET MVC4+EF5+EasyUI+Unity2.x注入的后台管理系统(47)-工作流设计-补充
- Qt4升级Qt5注意问题
- js选下拉框 提交 (触发事件)
- 第14周项目1 - 小玩文件(2)
- 第14周程序阅读 例3
- 第十三周项目二 几何族类的纯虚函数
- 第14周项目1-小玩文件(2)
- 【游玩】待参观列表
- 第十四周项目1--小玩文件(2)
- 第十四周阅读程序cerr流对象
- FragmentPagerAdapter与FragmentStatePagerAdapter区别