1234567891011121314151617181920212223 |
- <?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: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/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd">
- <!--扫描组件-->
- <context:component-scan base-package="com.demo.wjj.controller"/>
- <context:component-scan base-package="com.demo.wjj.validator"/>
- <context:component-scan base-package="com.demo.wjj.converter"/>
- <mvc:annotation-driven>
- <mvc:message-converters>
- <bean class="com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter">
- <property name="supportedMediaTypes" value="application/json;charset=utf-8"/>
- </bean>
- </mvc:message-converters>
- </mvc:annotation-driven>
- <mvc:default-servlet-handler/>
- </beans>
|