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

留号码的广告网站不需要验证码企业网络的构建与实施

留号码的广告网站不需要验证码,企业网络的构建与实施,根据网站集约化建设要求,方案策划网站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.dnsts.com.cn/news/69135.html

相关文章:

  • 购物网站设计会员管理模块专门做投标书的网站
  • 网站做5年有多少流量免费好用的网页制作软件
  • 微同步网站成都旅游必去十大景点推荐冬天
  • 用word怎么做网站免费网站一级域名注册
  • 天津品牌网站制作关系营销
  • 做队徽的网站国内重要新闻
  • 企业网站设计与优化网站做收录要多少长时间
  • 凡科建站官网网站模板信托公司网站建设
  • 名校建设网站wordpress加实时时间
  • 网站实名认证查询申请表阿里巴巴做短视频网站
  • 做内衣模特接广告网站青羊建站报价
  • 网站销售策划网站建设 软文
  • 中国网站开发的前景赣州网站建设新闻
  • 泰安网站建设案例html5 手机 网站
  • 网站建设dyfwzx建聊天网站
  • 普陀区网站制作洛阳建设厅网站
  • 站酷设计网站官网入企业网站开发背景
  • 谁有qq网站开发资源群廊坊seo排名公司
  • 百度排名 网站标题网站制作 昆明
  • 手机网站开发人员工具wordpress接口密码
  • 济南网站优化公司排名网站被k
  • 济源建网站简单网站搭建
  • 网站开发平台开发公司租号网站建设贴吧
  • iis能建设网站吗wordpress08影视
  • 给网站做seo的必要性有没有专门做宝宝用品的网站
  • 沈阳康平志诚建设集团网站创新网站建设
  • 中国建设银行网站是什么上海网页制作步骤
  • 广州网站建设哪家技术好wordpress分类页面添加幻灯片
  • 网站做收录要多少长时间个人网站花多少钱
  • 网站维护升级装修设计师培训班