zoukankan      html  css  js  c++  java
  • spring-servic.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"
        xmlns:p="http://www.springframework.org/schema/p"
        xmlns:aop="http://www.springframework.org/schema/aop"
        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">
        <!--1.扫描service包下所有使用注解的类型-->
        <context:component-scan 
        base-package="com.imooc.service"/>
        <!--2.配置事物管理器 -->
        <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
        <!--3.注入数据库连接池  -->
        <property name="dataSource" ref="dataSource"/>
        </bean>
        <!-- 4.配置基于注解的声明式事物 -->
        <tx:annotation-driven transaction-manager="transactionManager"/>
    </beans>
        
        
    
        
        
        
        
        
        
        
        
        
        
        
    ----------->农民工的码农转型之路
  • 相关阅读:
    java9的JShell小工具和编译器两种自动优化
    运算符
    数据类型
    常量&&变量
    强化学习复习笔记
    强化学习复习笔记
    DQN算法原理详解
    语言模型评价指标Perplexity
    C++ STL标准容器插入删除算法的复杂度
    集束搜索beam search和贪心搜索greedy search
  • 原文地址:https://www.cnblogs.com/shitulaoma/p/12393090.html
Copyright © 2011-2022 走看看