forked from su10king/untitled
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaop002.xml
More file actions
41 lines (37 loc) · 1.94 KB
/
Copy pathaop002.xml
File metadata and controls
41 lines (37 loc) · 1.94 KB
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
<?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:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.1.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
<aop:aspectj-autoproxy />
<bean id="myAspect" class="aop002.MyAspect"/>
<bean id="boy" class="aop002.Boy"/>
<bean id="dataSource" class="com.bridgetec.common.SecurityBasicDataSource" destroy-method="close" depends-on="precompareDataSourceAccount">
<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" />
<property name="url" value="jdbc:oracle:thin:@127.0.0.1:TEST" />
<property name="username" value="TEST" />
<property name="password" value="TEST" />
<property name="defaultAutoCommit" value="true" />
<property name="initialSize" value="5" />
<property name="maxTotal" value="30" />
<property name="maxIdle" value="5" />
<property name="maxWaitMillis" value="30000" />
<property name="validationQuery" value="SELECT 1 FROM DUAL" />
<property name="testOnBorrow" value="true" />
<property name="testOnReturn" value="false" />
<property name="testWhileIdle" value="true" />
<property name="timeBetweenEvictionRunsMillis" value="60000" />
</bean>
<bean id="txManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dataSource" />
</bean>
<aop:config>
<aop:pointcut id="requiredTx" expression="execution(* com.test..service.*Service.*(..))" />
<aop:advisor advice-ref="txAdvice" pointcut-ref="requiredTx" />
</aop:config>
</beans>