spring-service.xml 模板
阿新 • • 發佈:2018-12-19
initial not mic nsa break Coding over lap frame
ssm模板
- "1.0" encoding="UTF-8" xml version=
- <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/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
- </bean>
- <!-- 配置基於註解的聲明式事務 -->
- <tx:annotation-driven transaction-manager="transactionManager"/>
- </beans>
spring-service.xml 模板