在service类前加上@Transactional,声明这个service所有方法需要事务管理。每一个业务方法开始时都会打开一个事务。 Spring默认情况下会对运行期例外(RunTimeException)进行事务回滚。这个例外是unchecked 如果遇到checked意外就不回滚。 如何改变 ...
分类:
编程语言 时间:
2017-02-13 08:37:35
阅读次数:
220
Document 用户名: 密 码: 性 别: 男 女 爱 好: 篮球 足球 乒乓球 排球 城 市: 介 绍: hello world!! ... ...
分类:
其他好文 时间:
2017-02-12 16:56:03
阅读次数:
182
Configure Fiddler Click Tools > Fiddler Options > Connections. Ensure that the checkbox by Allow remote computers to connect is checked. If you check ...
分类:
移动开发 时间:
2017-02-10 12:41:08
阅读次数:
772
$(".all_selec").click(function(){ var flag = $(this).is(":checked"); var checkItems = $("input[name='check']"); for (var i = 0; i < checkItems.length; ...
分类:
其他好文 时间:
2017-02-09 17:31:06
阅读次数:
130
1 public static int getDpi(Context context) { 2 int dpi = 0; 3 WindowManager windowManager = (WindowManager) context.getSystemService(Context.WINDOW_S... ...
分类:
移动开发 时间:
2017-02-07 10:49:41
阅读次数:
386
添加ng-model后checked="checked"失效,可见angularjs也不好,会失效html标准属性解决:添加ng-checked="1" null ...
分类:
Web程序 时间:
2017-02-05 17:04:31
阅读次数:
287
1. PropertyPlaceholderConfigurer是个bean工厂后置处理器的实现,也就是 BeanFactoryPostProcessor接口的一个实现。PropertyPlaceholderConfigurer可以将上下文(配置文 件)中的属性值放在另一个单独的标准java Pro ...
分类:
其他好文 时间:
2017-02-05 14:04:06
阅读次数:
508
<?=ECMS_ShowEditorVar("newstext",$ecmsfirstpost==1?"":stripSlashes($r[newstext]),"Default","","300","100%")?><table width="100%" border="0" cellpaddin ...
分类:
其他好文 时间:
2017-02-03 23:58:08
阅读次数:
709
在文档中,任何一个节点都有 type 、 name 、value 这三个属性。 元素节点没有nodeValue 属性,值为null radio 判断其有没有被选中,radio 有个属性默认值是 checked="checked",如果可以遍历radio数组,checked属性有值或者存在,说明被选中 ...
分类:
编程语言 时间:
2017-02-03 15:38:15
阅读次数:
157