<?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:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
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-4.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
<!--springmvc驱动扫描包 -->
<mvc:annotation-driven >
<mvc:message-converters>
<!-- 定义文本转化器 -->
<bean class="org.springframework.http.converter.StringHttpMessageConverter">
<constructor-arg index="0" value="UTF-8"/>
</bean>
<bean class="com.wupao.common.spring.exetend.converter.json.CallbackMappingJackson2HttpMessageConverter">
<!-- 指定请求中的回调函数的参数名 -->
<property name="callbackName" value="callback"/>
</bean>
</mvc:message-converters>
</mvc:annotation-driven>
<!-- 处理静态页面被“/”拦截的问题-->
<mvc:default-servlet-handler/>
<!--定义Controller扫描包-->
<context:component-scan base-package="com.simple.sso.controller"/>
</beans>
配置系列:ssm中simple-sso-servlet.xml的简单配置
原文地址:http://simplelife.blog.51cto.com/9954761/1695780