您好,欢迎访问三七文档
?xmlversion=1.0encoding=UTF-8?beansxmlns=:xsi=:p=:aop=:tx=:context=:schemaLocation=://://://://://://://=userMapperclass=org.mybatis.spring.mapper.MapperFactoryBeanpropertyname=mapperInterfacevalue=com.ziyan.yyg.dao.UserMapper/propertypropertyname=sqlSessionFactoryref=sqlSessionFactory/property/beanbeanid=ShowMapperclass=org.mybatis.spring.mapper.MapperFactoryBeanpropertyname=mapperInterfacevalue=com.ziyan.yyg.dao.ShowMapper/propertypropertyname=sqlSessionFactoryref=sqlSessionFactory/property/beanbeanid=tNewsMapperclass=org.mybatis.spring.mapper.MapperFactoryBeanpropertyname=mapperInterfacevalue=com.ziyan.yyg.dao.TNewsMapper/propertypropertyname=sqlSessionFactoryref=sqlSessionFactory/property/beanbeanid=tPeriodsMapperclass=org.mybatis.spring.mapper.MapperFactoryBeanpropertyname=mapperInterfacevalue=com.ziyan.yyg.dao.TPeriodsMapper/propertypropertyname=sqlSessionFactoryref=sqlSessionFactory/property/beanbeanid=tOrderdetailsMapperclass=org.mybatis.spring.mapper.MapperFactoryBeanpropertyname=mapperInterfacevalue=com.ziyan.yyg.dao.TOrderdetailsMapper/propertypropertyname=sqlSessionFactoryref=sqlSessionFactory/property/beanbeanid=tRoottypeMapperclass=org.mybatis.spring.mapper.MapperFactoryBeanpropertyname=mapperInterfacevalue=com.ziyan.yyg.dao.TRoottypeMapper/propertypropertyname=sqlSessionFactoryref=sqlSessionFactory/property/beanbeanid=tPicsMapperclass=org.mybatis.spring.mapper.MapperFactoryBeanpropertyname=mapperInterfacevalue=com.ziyan.yyg.dao.TPicsMapper/propertypropertyname=sqlSessionFactoryref=sqlSessionFactory/property/beanbeanid=tOrderMapperclass=org.mybatis.spring.mapper.MapperFactoryBeanpropertyname=mapperInterfacevalue=com.ziyan.yyg.dao.TOrderMapper/propertypropertyname=sqlSessionFactoryref=sqlSessionFactory/property/beanbeanid=tBrandtypeMapperclass=org.mybatis.spring.mapper.MapperFactoryBeanpropertyname=mapperInterfacevalue=com.ziyan.yyg.dao.TBrandtypeMapper/propertypropertyname=sqlSessionFactoryref=sqlSessionFactory/property/beanbeanid=userBuyMapperclass=org.mybatis.spring.mapper.MapperFactoryBeanpropertyname=mapperInterfacevalue=com.ziyan.yyg.dao.UserBuyMapper/propertypropertyname=sqlSessionFactoryref=sqlSessionFactory/property/bean/beans======================================================================================================================?xmlversion=1.0encoding=UTF-8?beansxmlns=:xsi=:p=:aop=:tx=:context=:schemaLocation=://://://://://://://!--Properties文件读取配置,base的properties--context:property-placeholderlocation=classpath:jdbc.properties/!--JNDI获取数据源(使用dbcp连接池)--beanid=dataSourceclass=org.apache.commons.dbcp.BasicDataSourcedestroy-method=closescope=singletonpropertyname=driverClassNamevalue=${driver}/propertyname=urlvalue=${url}/propertyname=usernamevalue=${name}/propertyname=passwordvalue=${password}//bean!--enabletransactiondemarcationwithannotations--!--tx:annotation-driventransaction-manager=transactionManager/--!--(事务管理)transactionmanager,useJtaTransactionManagerforglobaltx--beanid=transactionManagerclass=org.springframework.jdbc.datasource.DataSourceTransactionManagerpropertyname=dataSourceref=dataSource//beantx:adviceid=txAdvicetransaction-manager=transactionManagertx:attributes!--给不同的方法指定不同的事务策略--tx:methodname=find*propagation=SUPPORTS/tx:methodname=save*propagation=REQUIREDrollback-for=java.lang.Exception/!--支持当前事务,如果执行到add开头的任何方法时没有事务则开启一个事务这是最常见的方式--tx:methodname=get*propagation=SUPPORTS/tx:methodname=add*propagation=REQUIREDrollback-for=java.lang.Exception/tx:metho
本文标题:一元购项目框架
链接地址:https://www.777doc.com/doc-762120 .html