![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
文章平均质量分 77
a714501466
这个作者很懒,什么都没留下…
展开
-
Kaptcha 属性
Constant Description Default kaptcha.border Border around kaptcha. Legal values are yes or no.(设置是否有边框 ) yes kaptcha.border.color Color of the border. Legal values are r,g,b (and optional...原创 2011-12-13 19:10:29 · 431 阅读 · 0 评论 -
<mvc:annotation-driven/> <context:annotation-config/> <context:component-scan/
<mvc:annotation-driven/>相当于注册了DefaultAnnotationHandlerMapping和AnnotationMethodHandlerAdapter两个bean,配置一些messageconverter。即解决了@Controller注解的使用前提配置。 <context:annotation-config/>1)隐式地向Spring容器...原创 2012-05-11 17:12:10 · 102 阅读 · 0 评论 -
spring @Transactional(一)
Spring事务的传播行为 在service类前加上@Transactional,声明这个service所有方法需要事务管理。每一个业务方法开始时都会打开一个事务。 Spring默认情况下会对运行期例外(RunTimeException)进行事务回滚。这个例外是unchecked 如果遇到checked意外就不回滚。 如何改变默认规则: 1 让checked例外也回滚:在整个方法前加上 @Tran...原创 2012-06-07 10:30:14 · 105 阅读 · 0 评论