2022年2月18日
摘要: Git 代码行统计: git log --author="xxxxx" --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --author="$name" --pretty=tformat: --si 阅读全文
posted @ 2022-02-18 09:54 代码改变世界2 阅读(24) 评论(0) 推荐(0)
  2022年2月17日
摘要: 断言 断言是一个逻辑判断,用于检查不应该发生的情况 Assert 关键字在 JDK1.4 中引入,可通过 JVM 参数-enableassertions开启 SpringBoot 中提供了 Assert 断言工具类,通常用于数据合法性检查 // 要求参数 object 必须为非空(Not Null) 阅读全文
posted @ 2022-02-17 21:22 代码改变世界2 阅读(94) 评论(0) 推荐(0)