05 2022 档案

摘要:Spring Boot项目添加全局异常捕获器 示例代码如下: @RestControllerAdvice public class GlobalExceptionHandler{ @ExceptionHandler(value = Exception.class) public Result<?> 阅读全文 »
posted @ 2022-05-28 12:37 zolmk 阅读(70) 评论(0) 推荐(0) 编辑
摘要:SpringBoot中的表单校验 一、添加依赖 请注意,不添加依赖编译不会报错,但是校验注解不会生效! <dependency> <groupId>javax.validation</groupId> <artifactId>validation-api</artifactId> </depende 阅读全文 »
posted @ 2022-05-28 12:30 zolmk 阅读(367) 评论(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 阅读(19) 评论(0) 推荐(0) 编辑
摘要:版本问题(所有奇奇怪怪的错误都可以归于此) Spring Cloud项目一定要注意版本的管理,不然出现奇奇怪怪的错误,原因真的很难找!!!! 后续如果时间允许,想做一个专门进行SpringCloud版本管理的网站,其实Spring也做了相关的工作(不是非常友好),但是新人不注意的话(我也是新人),就 阅读全文 »
posted @ 2022-05-04 21:43 zolmk 阅读(104) 评论(0) 推荐(0) 编辑
摘要:Spring Boot\Cloud Maven项目版本管理问题 前述:Spring Boot和Spring Cloud如果配置的时候不注意版本,就会出现各种各样奇奇怪怪的问题,手动管理项目依赖太麻烦。 使用Maven中的DependenciesManager节点来管理版本 一般常用的有下面三个: < 阅读全文 »
posted @ 2022-05-03 20:38 zolmk 阅读(458) 评论(0) 推荐(0) 编辑
摘要:Spring Boot 自定义启动Banner记录 获取自定义 Banner http://patorjk.com/software/taag/#p=display&f=3D%20Diagonal&t=Cxy%2CI%20Love%20U. 生效方式 在 resources 目录地下新建 banne 阅读全文 »
posted @ 2022-05-02 16:59 zolmk 阅读(31) 评论(0) 推荐(0) 编辑
摘要:常用Linux命令 系统状态查看 查看当前系统IP地址 ip addr 软件类 安装软件 yum install xxx 查找文件\软件 whereis xxx、which xxx、find / -name xxx 查看软件是否安装 yum list installed xxx 查询软件列表 rpm 阅读全文 »
posted @ 2022-05-01 20:01 zolmk 阅读(17) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示