摘要: Spring Boot 整合Hibernate Validator 代码仓库: https://github.com/Rain-with-me/JavaStudyCode/tree/main/3-springboot-validator 依赖 <dependencies> <dependency> 阅读全文
posted @ 2022-09-17 13:12 雨同我 阅读(41) 评论(0) 推荐(0) 编辑
摘要: # Docker 安装 ## 一、安装前必读 在安装 Docker 之前,先说一下配置,我这里是Centos7 Linux 内核:官方建议 3.10 以上,3.8以上貌似也可。 注意:本文的命令使用的是 root 用户登录执行,不是 root 的话所有命令前面要加 `sudo` **1.查看当前的内 阅读全文
posted @ 2022-09-09 20:40 雨同我 阅读(2856) 评论(0) 推荐(2) 编辑
摘要: IDEA 使用插件连接远程 Docker 测试地址 https://github.com/Rain-with-me/JavaStudyCode/tree/main/2-springboot-docker 插件使用 下载插件 依赖 版本 <properties> <java.version>1.8</ 阅读全文
posted @ 2022-09-08 12:46 雨同我 阅读(1386) 评论(0) 推荐(0) 编辑
摘要: 上传代码到GitHub仓库 准备工作 意思是自从 21 年 8 月 13 后不再支持用户名密码的方式验证了,需要创建个人访问令牌(personal access token)。 这里就不多说了 GitHub 上生成令牌 打开设置,然后找到下面 下面设置不过期时间就好,省的难搞,所有全选,反正不知道是 阅读全文
posted @ 2022-08-24 19:35 雨同我 阅读(270) 评论(0) 推荐(0) 编辑
摘要: NAT 模式(地址转换模式) 在NAT模式中,主机网卡直接与虚拟NAT设备相连,然后虚拟NAT设备与虚拟DHCP服务器一起连接在虚拟交换机VMnet8上,虚拟机借助NAT功能,通过宿主机器所在的网络来访问公网。NAT模式下虚拟机的TCP/IP配置信息是由VMnet8虚拟网络的DHCP服务器提供的,局 阅读全文
posted @ 2022-08-18 21:24 雨同我 阅读(2393) 评论(0) 推荐(2) 编辑
摘要: 使用命令vi /etc/ssh/sshd_config 修改文件 在最后一行找到 PasswordAuthentication 改成yes 重新运行 systemctl restart sshd.service Xshell切换 root 用户即可操作 su root 阅读全文
posted @ 2022-08-17 22:12 雨同我 阅读(627) 评论(0) 推荐(0) 编辑
摘要: # 基础语法 https://blog.csdn.net/m0_37989980/article/details/103413942 CRUD 提供给数据库管理员的基本操作,CRUD(Create, Read, Update and Delete)。 1. 语法: select [distinct 阅读全文
posted @ 2022-08-09 21:26 雨同我 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 设置git全局代理 查看代理 git config --global http.proxy git config --global https.proxy 如果你想让clone命令经过代理,首先需要设置git工具的 全局代理: 其中的7890是你挂代理的端口号 git config --global 阅读全文
posted @ 2022-08-09 21:23 雨同我 阅读(565) 评论(0) 推荐(0) 编辑
摘要: 2021 idea热部署 依赖 <!-- 热部署--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</sco 阅读全文
posted @ 2022-07-27 17:57 雨同我 阅读(88) 评论(0) 推荐(0) 编辑
摘要: # 旧的代码生成 记得导包,依赖如下 <!-- mybatis-plus --> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.5 阅读全文
posted @ 2022-07-24 09:57 雨同我 阅读(254) 评论(0) 推荐(0) 编辑