![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring系列
一颗向上的草莓
后台开发者,前端爱好者,个人博客:http://catchu.github.io
展开
-
对Spring事务传播行为的理解
前言大家好,我是敖丙!最近在重新整理 Spring 事务相关的内容,在看Spring 事务传播行为这块内容的时候,发现了这篇优秀的文章,分享一下。Spring在 TransactionDefinition 接口中规定了 7 种类型的事务传播行为。事务传播行为是 Spring 框架独有的事务增强特性,他不属于的事务实际提供方数据库行为。这是 Spring 为我们提供的强大的工具箱,使用事务传播行可以为我们的开发工作提供许多便利。但是人们对他的误解也颇多,你一定也听过“service 方法事..转载 2020-06-11 15:58:35 · 298 阅读 · 0 评论 -
使用SpringMvc的CommonsMultipartResolver上传文件(效率很高)
springmvc.xml中上传配置: <!-- 多部分文件上传 --> <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"> <property name="maxUploadSize" value="1原创 2017-07-26 14:58:35 · 1080 阅读 · 0 评论