摘要: spring支持编程式事务管理和声明式事务管理两种方式。 编程式事务管理使用TransactionTemplate或者直接使用底层的PlatformTransactionManager。对于编程式事务管理,spring推荐使用TransactionTemplate。 声明式事务管理建立在AOP之上的 阅读全文
posted @ 2018-04-28 16:14 Yusco 阅读(118) 评论(0) 推荐(0) 编辑
摘要: SpringBoot用于简化Spring应用的搭建,开发及部署;该框架采用注解的方式进行配置可以很方便的构建Spring应用。 1. @SpringBootApplication @SpringBootApplication 注解等价于以默认属性使用 @Configuration,@EnableAu 阅读全文
posted @ 2018-04-28 14:44 Yusco 阅读(566) 评论(0) 推荐(0) 编辑