上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 坏味道:Long Method(过长函数)重构的手段很简单:Extract Method,积极抽取函数或方法,隐藏细节保持职责单一。 如果较短的注释不能覆盖方法的含义,可能是这个方法职责不单一,可以考虑重构这个方法。方法、变量的命名尽量见名知意,避免用注释再解释一遍。 如何解决夸夸其谈未来性这种代码 阅读全文
posted @ 2022-04-24 01:00 己为 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 参考 1、007、Postman Cookie设置 2、https://www.jb51.net/article/189776.htm 3、使用 Postman 进行接口测试(cookie设置) 阅读全文
posted @ 2022-04-20 23:04 己为 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 文件上传拦截器 package jiwei.config; import cn.hutool.core.io.FileTypeUtil; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org. 阅读全文
posted @ 2022-04-19 23:31 己为 阅读(1785) 评论(0) 推荐(0) 编辑
摘要: 查询所有字段,根据库名获取所有的字段信息 SELECT TABLE_SCHEMA AS '库名', TABLE_NAME AS '表名', COLUMN_NAME AS '列名', ORDINAL_POSITION AS '列的排列顺序', COLUMN_DEFAULT AS '默认值', IS_N 阅读全文
posted @ 2022-04-19 23:25 己为 阅读(34) 评论(0) 推荐(0) 编辑
摘要: sudo su -。切换root身份,携带当前用户环境变量。 mkdir directory。新建文件夹mvmv -f 移动文件cp file directory。复制rm -rf directory。删除rm -f *查找文件find -name '*a*' 查看日志tail -f a.logta 阅读全文
posted @ 2022-04-18 23:26 己为 阅读(25) 评论(0) 推荐(0) 编辑
摘要: @SpringBootTest class SjTest { Logger log = LoggerFactory.getLogger(getClass()); @Autowired HelloController helloController; @Disabled @Test void cont 阅读全文
posted @ 2022-04-03 17:18 己为 阅读(64) 评论(0) 推荐(0) 编辑
摘要: #Referer拦截 referer: enabled: true #支持配置多个域名,以,分隔。 domains: 127.0.0.1,localhost //Referer拦截器 //@Component public class RefererInterceptor implements Ha 阅读全文
posted @ 2022-04-03 17:14 己为 阅读(365) 评论(0) 推荐(0) 编辑
摘要: Spring事务失效:有事务注解的方法,出现了异常,却没有回滚数据。 一个事务的方法,出现了异常,没有正确地回滚数据,我们应该怎么排除错误? 我们以这句话为出发点,开始记下面的知识。 记忆口诀: 哭泣着,抓住错误的对象。 哭 ,泣 ,抓住 ,错误的 ,对象 数据库,事务管理器,抓住异常,错误的传播类 阅读全文
posted @ 2021-09-01 01:01 己为 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-08-22 02:08 己为 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 使用Adblock Plus在初次使用时,并没有屏蔽成功。建议使用Tampermonkey,油猴插件。 1、Tampermonkey 360浏览器。打开菜单 》广告拦截 》更多扩展 搜索 Tampermonkey 点开 Tampermonkey 2、编辑脚本 // ==UserScript== // 阅读全文
posted @ 2021-08-15 00:30 己为 阅读(548) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页