- 博客(11)
- 收藏
- 关注
原创 报错1452 - Cannot add or update a child row: a foreign key constraint fails
mysql外键插入数据报错,外键建立不成功,搜索引擎。
2024-08-06 10:39:23
290
原创 springboot中的json时间格式化
springboot怎么配置json时间格式转换?比如将 16732623682 转为正常的时间格式 yyyy-MM-dd HH:mm:ss。
2023-06-23 15:19:58
1928
1
原创 SSM项目tomcat启动不了,spring配置问题。Caused by: java.lang.IllegalStateException: Cannot convert value of type
原因是spring配置文件出错了。在配置springxml文件时,注意数据库引入不能用value,还有一些对象的引用不能用value。改成ref就ok了。虽然这个问题很简单,但又有可能被忽略。再启动不了,再去看看tomcat日志信息,里面的信息比较详细!...
2022-03-07 17:05:04
681
原创 整合spring框架与mybatis框架中的错误,找不到sqlSessionFactory的文件。Error creating bean with name ‘sqlSessionFactory‘
警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [applicationContext.xml]: Invoca
2022-02-20 00:19:48
1881
原创 Mybatis中提示不能找到mybatis文件(找不到主配置文件),Exception in thread “main“ java.io.IOException: Could not find res
这里提示找不到mybatis.xml文件 , 可是看左边这里明明有的。原因是resource没有设为资源根路径,idea没找到资源。这样,我们可以把resource设为根路径就可以了。
2022-02-15 18:56:46
859
原创 2021-06-11
6-2 根据要求,使用泛型和LinkedList编写StringList类,实现QQ号码查找的功能。 (30 分)已知数组存放一批QQ号码,QQ号码最长为11位,最短为5位: String[] strs = {“12345”,“67891”,“12347809933”,“98765432102”,“67891”,“12347809933”}。 将该数组里面的所有QQ号都存放在LinkedList中,然后遍历链表,将list中第一个指定长度的QQ号查找出来;如果不存在指定长度的QQ号,则输出“not exi
2021-06-11 15:59:28
933
1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人