
springmvc
文章平均质量分 70
glory-of-me
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
AbstractRoutingDataSource源码分析
AbstractRoutingDataSource源码:/* * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in原创 2016-07-03 18:42:04 · 2073 阅读 · 1 评论 -
Spring配置事务 service 异常捕获回滚问题
1.首先来看一Spring配置事务的传播种类:Spring在TransactionDefinition接口中规定了7种类型的事务传播行为,它们规定了事务方法和事务方法发生嵌套调用时事务如何进行传播: PROPAGATION_REQUIRED 如果当前没有事务,就新建一个事务,如果已经存在一个事务中,加入到这个事务中。这是最常见的选择。 PROPAGATION_SUPPOR原创 2016-07-09 14:49:14 · 7894 阅读 · 0 评论 -
applicationContext.getBeansWithAnnotation
getBeansWithAnnotationMapString,Object> getBeansWithAnnotation(ClassAnnotation> annotationType) throws BeansExceptionFind all beans whose Class has the原创 2016-07-20 20:46:33 · 6481 阅读 · 0 评论