当前位置: 首页 > news >正文

昌邑市建设局网站wordpress点击文章404

昌邑市建设局网站,wordpress点击文章404,留号码的广告网站不需要验证码,二次开发1.概念 事务就是用户定义的一系列执行SQL语句的操作, 这些操作要么完全地执行#xff0c;要么完全地都不执行#xff0c; 它是一个不可分割的工作执行单元 一个使用Mybatis-Spring的主要原因是它允许Mybatis参与到Spring的事务管理中#xff0c;而不是给Mybatis创建一个新的…1.概念  事务就是用户定义的一系列执行SQL语句的操作, 这些操作要么完全地执行要么完全地都不执行 它是一个不可分割的工作执行单元 一个使用Mybatis-Spring的主要原因是它允许Mybatis参与到Spring的事务管理中而不是给Mybatis创建一个新的专用事务管理器  2.步骤 2.1.spring配置文件 ?xml version1.0 encodingUTF-8? beans xmlnshttp://www.springframework.org/schema/beansxmlns:xsihttp://www.w3.org/2001/XMLSchema-instancexmlns:txhttp://www.springframework.org/schema/tx xmlns:aophttp://www.springframework.org/schema/aopxsi:schemaLocationhttp://www.springframework.org/schema/beanshttps://www.springframework.org/schema/beans/spring-beans.xsdhttp://www.springframework.org/schema/txhttp://www.springframework.org/schema/tx/spring-tx.xsd http://www.springframework.org/schema/aop https://www.springframework.org/schema/aop/spring-aop.xsd!--Spring整合Mybatis省略了Mybatis的核心配置文件转而在Spring的配置文件中配置Mybatis--!--datasource--bean iddataSource classorg.springframework.jdbc.datasource.DriverManagerDataSourceproperty namedriverClassName valuecom.mysql.cj.jdbc.Driver/property nameurl valuejdbc:mysql://localhost:3306/user?useSSLfalseamp;useUnicodetrueamp;characterEncodingUTF-8/property nameusername valueroot/property namepassword value123456//bean!--sqlSessionFactory--bean idsqlSessionFactory classorg.mybatis.spring.SqlSessionFactoryBeanproperty namedataSource refdataSource / !-- property nameconfigLocation valueclasspath:mybatis-config.xml/--property namemapperLocations valueclasspath:com/sun/mapper/*.xml//bean!--SqlSessionTemplate:就是我们使用的sqlSession,这个是spring提供的--bean idsqlSessionTemplate classorg.mybatis.spring.SqlSessionTemplate!--我们只能使用构造器注入因为没有set方法--constructor-arg namesqlSessionFactory refsqlSessionFactory//beanbean idUserMapperImpl classcom.sun.mapper.UserMapperImplproperty namesqlSessionTemplate refsqlSessionTemplate//bean /beans 2.2.配置声明式事务 !--配置声明式事务-- bean idtransationManage classorg.springframework.jdbc.datasource.DataSourceTransactionManagerproperty namedataSource refdataSource/ /bean 2.3.用AOP的方式实现事务 !--结合AOP实现事务的织入--!--第一步配置事务的通知--tx:advice idtxAdvice transaction-managertransationManagetx:attributestx:method name* propagationREQUIRED//tx:attributes/tx:advice 2.4.配置事务切入 aop:configaop:pointcut idPointCut expressionexecution(* com.sun.mapper.*.*(..))/aop:advisor advice-reftxAdvice pointcut-refPointCut//aop:config
http://www.hkea.cn/news/14563780/

相关文章:

  • 青岛市蓝色经济区建设官方网站建设厅焊工证什么样子
  • 网站网页的收录数量行政单位网站建设立项依据
  • 哪里找专业做网站的人常熟做外贸网站需要注意什么
  • 桐柏县建设局网站榆次做网站
  • 网站建设推广话术成都淮洲新城建设投资有限公司网站
  • 做网站能申报只是产权么网站建设与开发的论文
  • 好的做淘宝详情页的网站有哪些衣服网站功能
  • 网站建设费 科研 类长春企业建站系统模板
  • 无锡建行网站地方网站成本
  • 关于建设网站的报告网站中的作用
  • 网站的制作建站人东台做网站
  • 电商网站设计思想做新网站不换域名
  • 电商直播app开发公司四川新站优化
  • 效果型网站建设做视频挣钱的网站
  • 红袖添香网站建设时间开发一个企业官网多少钱
  • 深圳企业网站模板大型网站响应式
  • 如何打开网站网页海口建设网站
  • 无成本搭建属于自己的网站php 视频播放网站开发
  • 用什么程序做网站最好优化工作5年体重飙400斤
  • 网站开发 百度云wordpress 缓存时间
  • 网站建设的优势何江wordpress首页标题修改
  • 网站开发背景图模板怎样做一个简单的网站首页
  • 杭州网站设计建设公司手机配件网站模板
  • 手机号交易网站源码怎么用阿帕奇做网站
  • 网站制作最新技术的百度用户服务中心
  • 南京响应式网站建设一个网站用多个域名
  • 免费网站怎么申请wordpress500错误
  • 罗源县建设局网站写网站的教程
  • 采集电影做的网站站群网站建设
  • 长沙做网站微联讯点不错企业vi设计公司有哪些