摘要: 1.事务需要由spring管理 <prop key="hibernate.current_session_context_class"> org.springframework.orm.hibernate5.SpringSessionContext</prop>2.在业务service注入sessi 阅读全文
posted @ 2021-05-07 16:19 初级小兵 阅读(305) 评论(0) 推荐(0)
摘要: 火狐浏览器设置默认滚动条的样式 ele { scrollbar-color: #e5e5e5 #f7f7f9;//设置滚动条颜色 scrollbar-width: thin;//设置滚动条宽度 } 详细参数参考地址https://developer.mozilla.org/zh-CN/docs/We 阅读全文
posted @ 2021-05-06 11:43 初级小兵 阅读(3635) 评论(0) 推荐(0)
摘要: 1,在layer.confirm弹窗中使用layer.open()无法打开加载遮罩效果 需要在打开遮罩前关闭confirm layer.confirm({content: '确定'}, function (val, index) { layer.close(index); layer.laod(); 阅读全文
posted @ 2020-08-08 18:13 初级小兵 阅读(154) 评论(0) 推荐(0)
摘要: 遇到问题:使用Spring注解式事务时,在事务中调用了两个方法,在方法二中出现了异常,方法一未回滚 原因:在开启事务的方法中如果使用了try catch 处理异常,则事务不回滚 @Override@Transactionalpublic void testMethodOne() { User use 阅读全文
posted @ 2020-08-08 18:01 初级小兵 阅读(228) 评论(0) 推荐(0)
摘要: 1、1~正无穷整数new RegExp(/(^[1-9]\d*$)/).test(quantity) 阅读全文
posted @ 2020-07-27 14:54 初级小兵 阅读(83) 评论(0) 推荐(0)
摘要: 恢复内容开始 1,去除空格 replace(/\s+/g,'') 2.jq可搜索select框插件 初始化: $(select)..chosen() 设置某一项选中后更新插件: $('.chosen-select').trigger("chosen:updated"); 3,jqgrid 单元格文字 阅读全文
posted @ 2020-06-04 09:28 初级小兵 阅读(91) 评论(0) 推荐(0)