
Spring
奔跑的年糕
每天都要进步一点
展开
-
Spring事务传播行为
Spring事务的传播行为有7种: PROPAGATION_REQUIRED:支持当前的事务,如果当前没有事务,就新建一个事务。例如ServiceB.methodB()设置为PROPAGATION_REQUIRED,当在ServiceA.methodA()方法中调用B时,如果A有事务,B就不再创建新事务,他们共用一个事务。如果A没有事务,B创建新的事务,公用一个事务,A和B任何地方出错,都会进行...原创 2018-03-28 20:42:21 · 202 阅读 · 0 评论 -
Spring整合mybatis pom文件
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://m原创 2018-05-04 20:18:54 · 2944 阅读 · 0 评论 -
Spring整合mybatis 配置文件
<?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://w原创 2018-05-04 20:20:09 · 412 阅读 · 1 评论