![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
超人先生1016
资源共享,共同进步!!
展开
-
spring Boot @Autowired注入
Bspring boot @Autowired使用方式: 1.通过构造器注入 单个 public class TestController (){ private final TestMapper testMapper; @Autowired public TestController (TestMapper testMapper) { this.testMapper= testMapper; }...原创 2018-12-14 15:52:10 · 759 阅读 · 0 评论 -
Spring事务详细解释,满满的都是干货!
前言 Spring在TransactionDefinition接口中规定了7种类型的事务传播行为。事务传播行为是Spring框架独有的事务增强特性,他不属于的事务实际提供方数据库行为。这是Spring为我们提供的强大的工具箱,使用事务传播行可以为我们的开发工作提供许多便利。但是人们对他的误解也颇多,你一定也听过“service方法事务最好不要嵌套”的传言。要想正确的使用工具首先需要了解工具。本文...转载 2019-06-12 23:48:47 · 177 阅读 · 0 评论