SpringMVC 配置文件
来源:互联网 发布:毕业论文致谢 知乎 编辑:程序博客网 时间:2024/04/30 04:02
1.web.xml
<?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1"><servlet> <servlet-name>spring</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class></servlet><servlet-mapping> <servlet-name>spring</servlet-name> <url-pattern>*.do</url-pattern></servlet-mapping></web-app>
<servlet-name>,-servlet.xml
2.spring-servlet.xml
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.1.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.1.xsd "><mvc:annotation-driven/><context:component-scan base-package="controller"/></beans>
0 0
- SpringMVC配置文件
- SpringMVC配置文件
- springMvc配置文件
- SpringMVC配置文件
- SpringMVC配置文件
- springmvc配置文件
- springMVC配置文件
- SpringMVC 配置文件
- springmvc配置文件
- springMVC配置文件
- SpringMVC配置文件
- SpringMVC 配置文件
- springmvc 配置文件
- SpringMvc 配置文件
- springmvc配置文件
- SpringMVC 配置文件
- SpringMVC配置文件
- springmvc配置文件
- 斯特林发动机
- vim :创造IDE环境
- Linux电源管理(2)_Generic PM之基本概念和软件架构
- 使用tensorflow构建简单卷积神经网络
- java学习日记_4:数组的学习1.1
- SpringMVC 配置文件
- 搜索引擎搜索技巧系列视频
- Android中的序列化浅析
- Codeforces Round #258 (Div. 2) B. Sort the Array
- sitemesh中的decorators.xml的用法
- Centos7安装Nginx以及与FastDFS的结合
- 输入一个字符串,内有数字和非数字字符。
- 深度学习笔记5:池化层的实现
- Javascript基础-介绍、实现、输出