springboot学习
lemonhjw218
这个作者很懒,什么都没留下…
展开
-
阿里云防火墙放行8080端口
放行端口:firewall-cmd --zone=public --add-port=8080/tcp --permanent查看是否打开:lsof -i:8080原创 2022-04-12 17:20:04 · 1069 阅读 · 0 评论 -
docker启动报错:Error starting daemon: SELinux is not supported with the overlay2 graph driver on this ke
环境:centos7命令:systemctl start dockersystemctl status docker -l报错:Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel. Either boot into a newer kernel or disable selinux in docker (--selinux-enabled=false)解原创 2022-04-12 16:13:17 · 2725 阅读 · 0 评论 -
mysql 5.7连接数据库时区配置
环境:springboot 2.3.0 + myBatis 2.1.2 + mysql 5.7出现无法连接数据库,在springboot项目中的application.properties中的spring.datasource.url中新增&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8其中,不同配置之间用&隔开,时区设置成GMT+8北京时原创 2021-12-06 20:11:51 · 1588 阅读 · 0 评论 -
MyBatis使用if test进行动态字段更新时的注意点
使用if test标签,可以选择性地更新非空字段。例如<if test="title != null "> title = #{title,jdbcType=VARCHAR},</if>但是在使用if test 进行判断时,应注意POJO类中地属性是基本数据类型,还是包装数据类型。例如此处point为包装数据类型Double,进行if test判断时应写成<if test="point != null "> point = #{point,jd原创 2021-11-30 14:42:28 · 726 阅读 · 0 评论 -
win10 mysql卸载5.5与重新安装5.7.19(最全踩坑)
本机原mysql5.5需要卸载,安装5.7版本。1. 停止mysql服务,右键计算机-->管理,找到mysql服务并停止2. 打开控制面板,卸载mysql程序。3. 删除mysql目录下的所有文件4. 打开“显示隐藏文件”。找到c盘ProgramData下的Mysql目录,该文件夹保存的是之前版本的mysql对应的数据库,备份后删除。5.win+R输入regedit打开注册表,找到HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\...原创 2021-11-27 19:18:39 · 1197 阅读 · 0 评论 -
本地8080端口被占用解决方案
1.打开cmd,输入netstat -aon|findstr 8080,找到被占用的端口2.输入taskkill /F /PID + 进程号即可关闭3. 重复第一步,可以看到没有进程占用8080端口原创 2021-11-23 20:01:30 · 755 阅读 · 1 评论