摘要: 关于代码的重构、优化,有很多技巧,我在这里记录下我遇到的问题 可以采用lambda function,来解决方法内重复出现的代码,让逻辑更清晰 // old TechnicalApproverComment comment1 = new TechnicalApproverComment(); com 阅读全文
posted @ 2021-12-31 11:11 season-qd 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 尽量多使用常量、枚举,少使用魔法变量,所谓魔法变量是指的,只有你看到那一行代码,才知道是干什么用的。 1、 如果系统中2代表成功,3代表失败,使用枚举success、fail,更好,不然你得写注释,另外如果改为3成功、4失败,只需要修改一个地方 2、 我在写定时任务的corn,写在枚举中,也方便管理 阅读全文
posted @ 2021-12-14 14:16 season-qd 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 主要介绍、记录git基于命令行的基本操作 clone项目 检出远程分支 检出本地分支 列出分支 查看提交历史 具体操作命令 clone项目 git clone git@127.0.0.1:season/equipment-manage.git 检出远程分支 git checkout -b local 阅读全文
posted @ 2021-12-05 16:09 season-qd 阅读(31) 评论(0) 推荐(0) 编辑
摘要: postman可以编写脚本,对于返回的数据进行处理,这是postman的脚本,记录了: 存储返回的数据 刷新请求的cookie 具体操作: 存储返回的数据 var jsonData = JSON.parse( responseBody ); postman.setEnvironmentVariabl 阅读全文
posted @ 2021-12-03 15:10 season-qd 阅读(93) 评论(0) 推荐(0) 编辑
摘要: var jqueryJs=document.createElement('script'); jqueryJs.setAttribute("type","text/JavaScript"); jqueryJs.setAttribute("src", 'https://code.jquery.com/ 阅读全文
posted @ 2021-11-17 15:13 season-qd 阅读(59) 评论(0) 推荐(0) 编辑
摘要: season小记,记下日常发现的小知识点 String的默认值,是null Mybatis,返回的List数据,如果为空,返回空List,list.size()==0 Mybatis,返回的对象数据,如果为空,返回null。所以呢,只有list会在外面包装list对象 我需要了解 缓存击穿 缓存雪崩 阅读全文
posted @ 2021-07-05 10:46 season-qd 阅读(29) 评论(0) 推荐(0) 编辑
摘要: git多账户,使用ssh连接 阅读全文
posted @ 2021-05-03 15:05 season-qd 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 2021-04-21,今天遇到了个问题,mybatis 的 test 判断写错了,判断相等,用了"="而不是"==",需要全局查询出是否有相同存在的问题,于是编写了下面的正则 test\s*=\s*.*[^!=]=[^=]\s*\w*"> <if test="item.educationalType 阅读全文
posted @ 2021-04-21 10:45 season-qd 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 就在今天,我的idea,光荣地升级了。 重新安装了idea,升级到了2020.3.3,也重新配置了idea。 修改字体与样式 appearance & behavior -> appearence -> size: 15 editor -> color scheme -> scheme: Intel 阅读全文
posted @ 2021-03-26 16:54 season-qd 阅读(59) 评论(0) 推荐(0) 编辑
摘要: filesort 阅读全文
posted @ 2020-11-15 16:26 season-qd 阅读(1192) 评论(0) 推荐(0) 编辑