spring
张张小
这个作者很懒,什么都没留下…
展开
-
在service不抛异常手动回滚事务
import org.springframework.transaction.interceptor.TransactionAspectSupport;TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();原创 2019-06-05 17:33:32 · 771 阅读 · 0 评论 -
spring boot 2.x 使用jsp
坑居多最好不使用jsp 最好不使用jsp 最好不使用jsp上配置和代码 jsp 在项目中路径为:src/main/webapp/WEB-INF/jspapplication.propertiesserver.port=8080spring.mvc.view.prefix=/WEB-INF/jsp/spring.mvc.view.suffix=.jsp...原创 2019-07-11 23:33:51 · 2836 阅读 · 0 评论