![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
文章平均质量分 77
leiming01
这个作者很懒,什么都没留下…
展开
-
spring eventbus事件总线
EventBus事件总线详情一, GreenRobot EventBus1 simple demo定义event buspackage com.example.demo.common.config;import org.greenrobot.eventbus.EventBus;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configurat原创 2021-01-28 17:25:34 · 1971 阅读 · 0 评论 -
Spring事务Transactional详情
Spring 事务传播机制(生命周期)note:以下举例中 methodA 属于外部方法,和 methodB , methodC , methodD 不在同一个类中。1 requiredrequired:如果当前所处外围方法已有事务,则加入到外围方法的事务中。若外围方法没有声明事务,则新开启一个事务执行。 /** * Support a current transaction, create a new one if none exists. */外部方法未声明事务,内部方法间原创 2020-11-14 17:29:15 · 207 阅读 · 0 评论