spring-service.xml 模板
生活随笔
收集整理的這篇文章主要介紹了
spring-service.xml 模板
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
ssm模板 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">?
<!-- 掃描service包下所有使用注解的類型 -->?
<context:component-scan base-package="com.ryanjie.o2o.service"/>?
?
<!-- 配置事務管理器 -->?
<bean id="transactionManager"?
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">?
<!-- 注入數據庫連接池 -->?
<property name="dataSource" ref="dataSource"/>?
</bean>?
?
<!-- 配置基于注解的聲明式事務 -->?
<tx:annotation-driven transaction-manager="transactionManager"/>?
</beans>?
轉載于:https://www.cnblogs.com/Ryanjie/p/10142719.html
總結
以上是生活随笔為你收集整理的spring-service.xml 模板的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 没有Home键的iPhone12如何返回
- 下一篇: Flask总结