Springboot
boykchen
这个作者很懒,什么都没留下…
展开
-
解决controller层Exception异常事务回滚失效
Spring的@Transactional源码中写道:By default, a transaction will be rolling back on {@link RuntimeException}and {@link Error} but not on checked exceptions (business exceptions).默认情况下,如果在事务中抛出了未检查异常(继承自 RuntimeException 的异常)或者 Error,则 Spring 将回滚事务;除此之外,Spring 不原创 2020-08-28 11:54:21 · 3501 阅读 · 0 评论 -
Spring-Boot-Security实现权限管理+MD5加密(简单版本)
Spring-Boot-Security实现权限管理+MD5加密:1.在pom.xml中引入SpringBoot集成SpringSecurity的依赖包<!-- Spring-security --><!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-sec...原创 2019-12-20 15:31:29 · 1424 阅读 · 0 评论