
Spring Boot
天空趋虚
我脚下的,就是路
展开
-
Spring boot 事务问题
Spring boot 的事务Spring boot 的事务一直表现一些奇怪的特点,现在一一列举一下,留作参照。事务 @Transactional 注解不生效事务不生效的原因有很多,其他的都可以理解,但有一个确实不可理喻。当 @Service 第一个方法没有使用 @Transactional 注解时,后续调用的方法即使使用 @Transactional 注解。事务也不会开启。在同一个 @Service 注解类下的不同 @Transactional 不能同时生效这是spring 事务的奇怪特性。比如原创 2020-05-22 09:43:26 · 371 阅读 · 0 评论 -
spring.provides 不再使用
Remove spring.provides filesIt does use pom parsing indirectly, since aether parses the poms. The info may look like its duplicating information but it isn’t exactly. The provides is used to resolve ambiguity. Basically if a provides file says that a ‘sta原创 2020-05-22 09:42:13 · 3783 阅读 · 2 评论