<?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:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context"
|
xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"
|
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/aop
|
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
|
http://www.springframework.org/schema/tx
|
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
|
http://www.springframework.org/schema/mvc
|
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
|
http://www.springframework.org/schema/context
|
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
|
|
|
|
<!-- bean id="beanDefineConfigue" class="com.example.demo.TestBoot"></bean -->
|
|
<bean id="beanDefineConfigue" class="com.smtservlet.core.SMTWebStartup"></bean>
|
|
<!-- 自定义转换对象类 -->
|
<bean id="userArgumentResolver" class="com.smtservlet.resolver.SMTUserArgResolver"/>
|
|
<bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter">
|
<property name="customArgumentResolvers">
|
<list>
|
<bean class="com.smtservlet.resolver.SMTHandlerMethodArgumentResolver"/>
|
</list>
|
</property>
|
<property name="Order" value="1"/>
|
</bean>
|
|
<!-- 自定义缺省转换注册类 -->
|
<bean class="com.smtservlet.resolver.SMTRequestMapping">
|
<property name="Order" value="0"/>
|
</bean>
|
|
<!-- 注册资源类 -->
|
<bean id="SMTAppResource" class="com.smtservlet.core.SMTAppResource">
|
<property name="ResourceMap">
|
<map>
|
<entry key="RequestMapJsonLocations">
|
<bean class="com.smtservlet.core.SMTAppResLocations">
|
<property name="Locations" value="classpath*:requestmap/*.json"/>
|
</bean>
|
</entry>
|
<entry key="WaternetSqlXmlLocations">
|
<bean class="com.smtservlet.core.SMTAppResLocations">
|
<property name="Locations" value="classpath*:sqlxmlmap/*.xml"/>
|
</bean>
|
</entry>
|
|
</map>
|
</property>
|
</bean>
|
|
<bean id="exceptionResolver" class="com.smtservlet.exception.SMTControlExceptionResolver"/>
|
|
<bean class="com.smtservlet.core.SMTSessionListener"/>
|
|
</beans>
|