随笔 - 247  文章 - 0  评论 - 20  阅读 - 56万
07 2021 档案
mybatis插入数据时处理为null的属性
摘要:在做项目的时候,数据库中的所有字段被设置为全都不能为null,但是在我们开发过程中,插入一些记录的时候,实体类中的一些字段如果页面没有传入,则默认就会被设置为null,这样的话,在执行插入语句的时候,数据库就会报错,说指定的列不能为null,这样数据就无法插入。在网上找了一下,都没有这种处理的方式, 阅读全文
posted @ 2021-07-23 12:04 云淡风轻博客 阅读(5146) 评论(0) 推荐(0) 编辑
Failed to start connector [Connector[HTTP/1.1-8080]]
摘要:错误提示:Failed to start connector [Connector[HTTP/1.1-8080]]错误原因:Tomcat端口被占用解决方案(window下):1.cmd打开命令控制台2.查看tomcat的所使用的端口 netstat -ano|findstr 8080 此处的“392 阅读全文
posted @ 2021-07-12 17:21 云淡风轻博客 阅读(584) 评论(0) 推荐(0) 编辑
Calendar.set方法获取前一天的当前时刻
摘要:获取前几天的当前时刻的时间方法 Calendar cal = Calendar.getInstance(); Date date = new Date();// 获取当前时间 cal.setTime(date); cal.set(Calendar.DATE,cal.get(Calendar.DATE 阅读全文
posted @ 2021-07-10 11:13 云淡风轻博客 阅读(1481) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

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