11
zhouwei
2019-07-12 143f7be25ff19896e70ffc486999a64a3bc3b76f
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
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
    xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
    xmlns:jdbc="http://www.springframework.org/schema/jdbc" xmlns:mvc="http://www.springframework.org/schema/mvc"
    xmlns:util="http://www.springframework.org/schema/util"
       xmlns:task="http://www.springframework.org/schema/task"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
                     http://www.springframework.org/schema/beans/spring-beans.xsd
                     http://www.springframework.org/schema/tx
                     http://www.springframework.org/schema/tx/spring-tx-3.2.xsd
                     http://www.springframework.org/schema/context
                     http://www.springframework.org/schema/context/spring-context.xsd
                     http://www.springframework.org/schema/aop
                     http://www.springframework.org/schema/aop/spring-aop.xsd
                     http://www.springframework.org/schema/jdbc
                     http://www.springframework.org/schema/jdbc/spring-jdbc-3.2.xsd
                     http://www.springframework.org/schema/util
                     http://www.springframework.org/schema/util/spring-util-3.2.xsd
 
                     http://www.springframework.org/schema/mvc
                     http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd
                     http://www.springframework.org/schema/task
                     http://www.springframework.org/schema/task/spring-task-3.2.xsd">
 
    <context:component-scan base-package="com.safeluck.aaej.app.controller" />
    <!--<aop:aspectj-autoproxy proxy-target-class="true" expose-proxy="true"/>-->
    <!--<mvc:resources mapping="/static/**" location="/static/"/>-->
 
    <!--api swagger-->
    <!-- Standard xml based mvc config- 加了下面配置 OPTIONS 403 swagger成功,不加OPTIONS成功 swagger不扫描
    http://localhost:8001/swagger-ui.html#/-->
    <!--<mvc:annotation-driven enable-matrix-variables="true"/>-->
 
    <!--<Enables swgger ui-->
    <!--<mvc:resources mapping="swagger-ui.html" location="classpath:/META-INF/resources/"/>-->
    <!--<mvc:resources mapping="/webjars/**" location="classpath:/META-INF/resources/webjars/"/>-->
 
 
    <mvc:default-servlet-handler />
    <mvc:interceptors>
        <mvc:interceptor>
            <mvc:mapping path="/**"/>
            <mvc:exclude-mapping path="/status"/>
            <mvc:exclude-mapping path="/token"/>
            <mvc:exclude-mapping path="/test/**"/>
            <!--<mvc:exclude-mapping path="/swagger*/**"/>-->
            <!--<mvc:exclude-mapping path="/v2/api-docs"/>-->
            <!--<mvc:exclude-mapping path="/webjars/**"/>-->
            <bean class="com.safeluck.aaej.app.config.SecurityFilter" >
            </bean>
        </mvc:interceptor>
 
        <!--<mvc:interceptor>-->
            <!--<mvc:mapping path="/**"/>-->
 
            <!--<bean class="com.safeluck.aaej.api.tools.InitFilter" >-->
            <!--</bean>-->
        <!--</mvc:interceptor>-->
 
    </mvc:interceptors>
 
</beans>