spring-servlet.xml配置文件
来源:互联网 发布:java鱼雷2017 编辑:程序博客网 时间:2024/05/22 13:20
--记录spring-servlet.xml配置文件
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">
<context:component-scan base-package="com.hp"/>
<mvc:annotation-driven/>
<mvc:default-servlet-handler/>
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/>
<property name="prefix" value="/"/>
<property name="suffix" value=".jsp"/>
</bean>
<!-- 转换器 -->
<bean id="mappingJacksonHttpMessageConverter"
class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter">
<property name="supportedMediaTypes">
<list>
<value>application/json;charset=UTF-8</value>
</list>
</property>
</bean>
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
<property name="messageConverters">
<list>
<ref bean="mappingJacksonHttpMessageConverter"/>
</list>
</property>
</bean>
<!-- rest json related... end -->
</beans>
阅读全文
0 0
- spring-servlet.xml配置文件
- Spring MVC 配置文件dispatcher-servlet.xml 文件详解
- 【Spring实战】----springMVC配置文件*-servlet.xml的解析
- Spring MVC 配置文件dispatcher-servlet.xml 文件详解
- blog-servlet.xml配置文件
- Servlet配置文件web.xml
- Servlet 配置文件web.xml
- servlet web.xml配置文件
- Spring servlet配置文件
- springmvc配置文件:springmvc-servlet.xml
- spring的XML配置文件
- spring加载xml配置文件
- spring配置文件applicationContext.xml
- Spring:加载xml配置文件
- Spring的XML配置文件
- spring-security.xml 配置文件
- spring配置文件 applicationContext.xml
- Spring配置文件-applicationContext.xml
- python实现的八大排序算法part1
- 菜鸟的第六篇日志
- border属性
- spring-bean.xml配置文件
- padding属性
- spring-servlet.xml配置文件
- 我的博客园链接
- margin属性
- 1115. Counting Nodes in a BST 解析
- float
- C++ set解析
- hdu 6183 Color it(动态线段树,cdq分治)
- php上传图片并预览
- git did not exit cleanly (exit code 1)