spring-web.xml
来源:互联网 发布:手机上电脑淘宝网页版 编辑:程序博客网 时间:2024/06/14 02:47
<?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.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> <!--配置springMVC--> <!--1.开启springmvc注解模式--> <!--简化配置 1)自动注册DefaultAnnotationHandlerMapping,AnnotationMethodHandlerAdapter 2)提供一系列:数据绑定,数字和日期的format @NumberFormat @DataTimeFormat, xml,json默认读写支持 --> <mvc:annotation-driven /> <!--servlet-mapping 映射路径: "/"--> <!--2:静态资源默认sevlet配置 1:加入对静态资源的处理:js,gif,png 2:允许使用"/"做整体映射 --> <mvc:default-servlet-handler /> <!--3:配置jsp显示ViewResolver--> <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/> <property name="prefix" value="/WEB-INF/jsp/"/> <property name="suffix" value=".jsp"/> </bean> <!--4:扫描web相关的bean--> <context:component-scan base-package="包名"/></beans>
0 0
- web.xml[spring][encoding]
- Spring mvc web.xml
- spring mvc web.xml
- spring web.xml
- spring中的web.xml
- spring web.xml
- spring-web.xml
- Spring web.xml
- web。xml初始化spring
- web.xml中配置spring
- web.xml方式加载Spring
- web.xml中配置Spring
- spring的web.xml配置
- spring web.xml中的配置
- web.xml配置spring监听器
- Spring的web.xml配置
- spring之web。xml学习
- spring 笔记之 web.xml
- JavaFX表格控件TableView高级应用:自动添加ID列、删除操作列、单元格内容个性化渲染
- RN使用第三方组件库
- 天南亦或海北
- VSCode C++配置编译调试
- Oracle用户创建及赋权
- spring-web.xml
- spring-service.xml
- 【23种设计模式从零学2—简单工厂与工厂模式】
- ubuntu terminal及vim使用solarized主题教程
- spring-dao.xml
- java注解
- 安卓小菜鸟重拾Java系列002.Java转义字符与与sax解析xml
- 多行文字溢出解决方案
- java编程思想读书笔记(四)