摘要: Spring Boot项目添加全局异常捕获器 示例代码如下: @RestControllerAdvice public class GlobalExceptionHandler{ @ExceptionHandler(value = Exception.class) public Result<?> 阅读全文
posted @ 2022-05-28 12:37 zolmk 阅读(68) 评论(0) 推荐(0) 编辑
摘要: SpringBoot中的表单校验 一、添加依赖 请注意,不添加依赖编译不会报错,但是校验注解不会生效! <dependency> <groupId>javax.validation</groupId> <artifactId>validation-api</artifactId> </depende 阅读全文
posted @ 2022-05-28 12:30 zolmk 阅读(341) 评论(0) 推荐(0) 编辑
摘要: Git常用命令 克隆 git clone xxxx 拉取\更新 git pull 添加所有已修改文件 git add . 提交到本地仓库 git commit 推送\提交到远程仓库 git push 更新仓库 git fetch 合并仓库,合并冲突会要求处理 git merge 重置仓库到当前版本 阅读全文
posted @ 2022-05-28 12:04 zolmk 阅读(16) 评论(0) 推荐(0) 编辑