第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定

正在回答

1 回答

<?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:tx="http://www.springframework.org/schema/tx"
	xmlns:aop="http://www.springframework.org/schema/aop"?xmlns:context="http://www.springframework.org/schema/context"
	xsi:schemaLocation="http://www.springframework.org/schema/beans?
						http://www.springframework.org/schema/beans/spring-beans-3.2.xsd?
						http://www.springframework.org/schema/tx?
						http://www.springframework.org/schema/tx/spring-tx-3.2.xsd?
						http://www.springframework.org/schema/aop?
						http://www.springframework.org/schema/aop/spring-aop-3.2.xsd?
						http://www.springframework.org/schema/context?
						http://www.springframework.org/schema/context/spring-context-3.2.xsd?">
	<!--?引入屬性文件?-->
	<context:property-placeholder?location="classpath:db.properties"?/>
	<!--?配置c3p0連接池?-->
	<bean?id="dataSource"?class="com.mchange.v2.c3p0.ComboPooledDataSource">
		<property?name="driverClass"?value="${core.driverClassName}"?/>
		<property?name="jdbcUrl"?value="${core.url}"?/>
		<property?name="user"?value="${core.username}"?/>
		<property?name="password"?value="${core.password}"?/>
	</bean>
	<!--?配置業(yè)務(wù)層?-->
	<bean?id="accountService"?class="com.spring.demo3.AccountServiceImpl">
		<property?name="accountDao"?ref="accountDao"?/>
	</bean>
	<!--?配置dao層?-->
	<bean?id="accountDao"?class="com.spring.demo3.AccountDaoImpl">
		<property?name="dataSource"?ref="dataSource"?/>
	</bean>
	<!--?配置事務(wù)管理器?-->
	<bean?id="transactionManager"
		class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
		<property?name="dataSource"?ref="dataSource"?/>
	</bean>
	<!--?開啟注解事務(wù)?-->
	<tx:annotation-driven?transaction-manager="transactionManager"/>
</beans>


0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消
Spring事務(wù)管理
  • 參與學(xué)習(xí)       87319    人
  • 解答問題       205    個

事務(wù)管理是Spring重要的知識,應(yīng)用事務(wù)解決數(shù)據(jù)不一致問題

進(jìn)入課程
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號