24 lines
1.1 KiB
XML
24 lines
1.1 KiB
XML
<?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:context="http://www.springframework.org/schema/context"
|
||
xmlns:tx="http://www.springframework.org/schema/tx"
|
||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||
http://www.springframework.org/schema/beans/spring-beans.xsd
|
||
http://www.springframework.org/schema/context
|
||
http://www.springframework.org/schema/context/spring-context.xsd
|
||
http://www.springframework.org/schema/tx
|
||
http://www.springframework.org/schema/tx/spring-tx.xsd">
|
||
|
||
<!-- 加载属性文件 -->
|
||
<context:property-placeholder location="classpath:application.properties"/>
|
||
|
||
<!-- 开启注解扫描,排除Controller -->
|
||
<context:component-scan base-package="ltd.qubit.survey">
|
||
<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller"/>
|
||
</context:component-scan>
|
||
|
||
<!-- 配置事务注解驱动 -->
|
||
<tx:annotation-driven/>
|
||
|
||
</beans> |