<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>
|