
Exception
文章平均质量分 55
明天天明~
编程之路
展开
-
JSON parse error: Cannot deserialize instance of `com.zt.edu.entity.vo.CourseInfo out of START_ARRA
翻译过来就是:JSON解析错误:无法从START_ARRAY令牌中反序列化com.zt.edu.entity.vo.CourseInfoVo`实例。也就是前端与后端的数据类型不一样,导致从前端输入的数据向后端传值的时候后端无法解析,而后端发生MismatchedInputException也就是不匹配的输入异常,这就要检查前端和后端数据类型是否一致,经过检查我的前端中定义的数据如下图是数组类型的,而后端用于接收的是对象类型,导致错误。前端改为对象类型的就没问题了!...原创 2021-04-25 18:11:31 · 3757 阅读 · 1 评论 -
Caused by: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry ‘张三‘ for key ‘ul_name‘
异常详情org.springframework.dao.DuplicateKeyException: ### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '张三' for key 'ul_name'### The error may involve com.zt.edu.mapper.TeacherMapper.insert-Inline##原创 2021-04-21 09:57:03 · 6920 阅读 · 0 评论 -
Caused by: java.lang.NumberFormatException: For input string: “undefined“
org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Long'; nested exception is java.lang.NumberFormatException: For input string: "undefined" at or..原创 2021-04-19 17:37:19 · 9332 阅读 · 1 评论