bug
做想做的,
成年人的世界并没有太多的迂回,证明自己最好的方式,就是行动。
展开
-
元素类型为 “mapper“ 的内容必须匹配
今天在写mapper.xml文件中我用/** 代码说明*/误加了注释,然后报了这个错具体异常如下Caused by: org.xml.sax.SAXParseException; lineNumber: 134; columnNumber: 10; 元素类型为 "mapper" 的内容必须匹配 "(cache-ref|cache|resultMap*|parameterMap*|sql*|insert*|update*|delete*|select*)+"。错误代码 /** 公共条件 */原创 2021-06-02 18:00:05 · 2364 阅读 · 4 评论 -
Cannot deserialize value of type java.util.Date from String
今天在做新增功能的时候出现了不能将字符串转换为日期异常。而且还是com.fasterxml.jackson.databind.exc.InvalidFormatException异常。具体异常如下Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.util.Date` from String "2021-05-05": not a va.原创 2021-05-28 10:03:02 · 15531 阅读 · 0 评论 -
我明明指定了xml的路径,为什么还是Cause: java.io.IOException: Could not find resource *.xml
今天使用mybatis创建demo测试的时候发现了一个bugCaused by: org.apache.ibatis.exceptions.PersistenceException: ### Error building SqlSession.### The error may exist in UserMapper.xml### Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configura原创 2021-05-25 11:05:43 · 253 阅读 · 0 评论 -
Cause: java.sql.SQLExceptioValue ‘0000-00-00 00:00:00‘ can not be represented as java.sql.Timestamp
今天使用mybatis创建demo测试的时候发现了一个有意思的bugorg.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.apache.ibatis.executor.result.ResultMapException: Error attempting to get column 'last_login_at' from result set. Cause: java.s原创 2021-05-25 10:50:43 · 300 阅读 · 0 评论 -
java.nio.file.InvalidPathException: Illegal char <> at index
今天build项目的时候出现了这样的错误:Error:maven-resources-production:项目名: java.nio.file.InvalidPathException: Illegal char <> at index 117: xxx ,折腾了半小时各种百度找资料,结果重新rebuild一下项目就好了。。。然后就可以了。...原创 2021-04-28 17:14:34 · 10929 阅读 · 8 评论