123456789101112131415161718192021222324252627282930313233 |
- <?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:p="http://www.springframework.org/schema/p"
- xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:mvc="http://www.springframework.org/schema/mvc"
- xmlns:context="http://www.springframework.org/schema/context"
- 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.xsd
- http://www.springframework.org/schema/mvc
- http://www.springframework.org/schema/mvc/spring-mvc.xsd
- http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context.xsd">
-
- <mvc:annotation-driven></mvc:annotation-driven>
- <context:component-scan base-package="com.fuzamei" />
- <!-- 配置事务 -->
- <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
- <!-- 加载数据源 -->
- <property name="dataSource" ref="dataSource"></property>
- </bean>
- <!-- 开启事务扫描 -->
- <tx:annotation-driven transaction-manager="transactionManager" proxy-target-class="true"/>
- <!-- 对token拦截验证 (为方便测试,测试环境给注释掉)-->
- <!-- <mvc:interceptors>
- <mvc:interceptor>
- <mvc:mapping path="/*/api/*" />
- <bean class="com.fuzamei.interceptor.TokenInterceptor" />
- </mvc:interceptor>
- </mvc:interceptors> -->
- </beans>
|