随笔分类 - Spring
1.依赖注入DI和控制反正IOC
2.面向切面AOP
该文被密码保护。
该文被密码保护。
该文被密码保护。
摘要:原因: 1.加事务注解 @Transactional import org.springframework.transaction.annotation.Transactional; 2.方法必须是public修饰
阅读全文
该文被密码保护。
摘要:java.io.FileNotFoundException:class path resource [kwhRules.json] cannot be resolved to absolute file path because it does not reside in the file syst
阅读全文
摘要:https://www.cnblogs.com/AlexQY/p/10373820.html
阅读全文
摘要:https://blog.csdn.net/chengqiuming/article/details/102331033
阅读全文
该文被密码保护。
该文被密码保护。
摘要:测试时使用save()方法向数据库插入一条记录,结果发现通过单元测试了,但是并没有向数据库插入一条记录,一看日志,发现Spring-test对事务进行了回滚。为了使测试数据不对数据库造成污染,在使用Spring-test进行的单元测试的时候,默认会对事务进行回滚,即@Rollback 默认是true
阅读全文
摘要:单生产者 单消费者 执行
阅读全文