摘要: Spring 事务的入口: TxAdviceBeanDefinitionParser 解释 <tx:advice/> 这里将解析tx的配置。 @Override protected Class<?> getBeanClass(Element element) { return Transaction 阅读全文
posted @ 2019-11-11 15:19 coding++ 阅读(439) 评论(0) 推荐(0) 编辑
摘要: 异常: 如下图所示,我们都知道 Exception 分为 运行时异常 RuntimeException 和 非运行时异常。 error 是一定会回滚的。 如果不对运行时异常进行处理,那么出现运行时异常之后,要么是线程中止,要么是主程序终止。 如果不想终止,则必须捕获所有的运行时异常,决不让这个处理线 阅读全文
posted @ 2019-11-11 14:08 coding++ 阅读(111) 评论(0) 推荐(0) 编辑
摘要: @Transactional spring 事务注解 1、简单开启事务管理 @EnableTransactionManagement // 启注解事务管理,等同于xml配置方式的 <tx:annotation-driven /> 2、事务注解详解 默认遇到:throw new RuntimeExce 阅读全文
posted @ 2019-11-11 11:39 coding++ 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 本次案例工具为:SpringBoot <version>1.5.19.RELEASE</version> Code: 1、annotations package com.mlq.annotations; import java.lang.annotation.Documented; import j 阅读全文
posted @ 2019-11-08 14:10 coding++ 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 1、在多个文件中 查找内容 find . -type f -name "*.html" | xargs grep "1" 2、文件太大按照 文件大小拆分 split -b 1000m 20201217.log waynelog 未完待续... 阅读全文
posted @ 2019-11-08 13:54 coding++ 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 本次使用工具:SpringBoot <version>1.5.19.RELEASE</version> Code: AbstractException: package mlq.global.anomaly.exception; import mlq.global.anomaly.utils.Err 阅读全文
posted @ 2019-11-08 10:35 coding++ 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 语法:FIND_IN_SET(str,strlist) 定义: 1). 假如字符串 str 在由N子链组成的字符串列表 strlist 中,则返回值的范围在1到N之间。 2). 一个字符串列表就是一个由一些被‘,’符号分开的自链组成的字符串。 3). 如果第一个参数是一个常数字符串,而第二个是typ 阅读全文
posted @ 2019-11-06 17:59 coding++ 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Code: package com.tree.ztree_demo.utils; import org.springframework.util.ObjectUtils; import java.text.DateFormat; import java.text.ParseException; im 阅读全文
posted @ 2019-11-06 11:14 coding++ 阅读(303) 评论(0) 推荐(0) 编辑
摘要: IEVersion(); function IEVersion() { var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串 var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1; //判断是否IE -1 ... 阅读全文
posted @ 2019-10-31 14:29 coding++ 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 在使用layui的form表单做验证提交的时候,如果结合vue,或者是三级联动的时候,就需要做事件监听了。 具体语法: 可以用于监听:select,checkbox,switch,radio,submit 的改变 1):监听select的改变 同理,监听checkbox复选 监听switch开关: 阅读全文
posted @ 2019-10-31 14:13 coding++ 阅读(141) 评论(0) 推荐(0) 编辑