TangCheng
2025-03-10 4510a9b0d7c22fbcb3a8b7cc99b948e262e6a759
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?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>