
bug
翻出乱世
持续学习中
展开
-
com.fasterxml.jackson.databind.exc.MismatchedInputException
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.String` out of START_ARRAY token请求参数匹配导致的异常后台用的是字符串接收,这里传的是数组,所有出现异常,值的最外层加上引号即可注意事项:当存储的是json 字符串的情况,需要注意最外层用了引号的情况下,里面用的转义符 " \ "..原创 2022-03-07 14:11:07 · 20411 阅读 · 0 评论 -
org.apache.ibatis.binding.BindingException
springboot 项目 ,出现org.apache.ibatis.binding.BindingException出现原因:mybatis配置文件的为路径未对应解决方法:mapper-locations: classpath*:/mapper/*Mapper.xml加入通配符 * 进行匹配#mybaits配置mybatis: mapper-locations: classpath*:/mapper/*Mapper.xml typeAliasesPackage: com.xxx.xx.x原创 2022-02-28 23:12:31 · 191 阅读 · 0 评论 -
Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException
2 个bean 冲突导致的异常,找到Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException,报错后面的路径文件,删除或者注释掉 ,再启动原创 2022-02-21 09:34:49 · 419 阅读 · 0 评论 -
org.apache.ibatis.reflection.ReflectionException: There is no getter for property named ‘keyword‘ in
org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'keyword' in 'class java.lang.String' at org.apache.ibatis.reflection.Reflector.getGetInvoker(Reflector.java:395) ~[mybatis-3.5.1.jar:3.5.1] at org.apache.ibatis.refl原创 2021-09-14 11:51:10 · 585 阅读 · 0 评论 -
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
整数不能转换为字符串问题代码(我将object 类型 通过 (String)redisCode 方式 强转为String 类型 Object redisCode = redisTemplate.opsForValue().get(jyUser.getPhone()); String code = (String)redisCode;结果报错修改后String code = redisCode.toString();遇到的bug 做此记录,...原创 2021-07-03 13:23:37 · 703 阅读 · 0 评论 -
org.springframework.beans.factory.UnsatisfiedDependencyException
现象服务无法启动下面错误日志Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webMvcRequestHandlerProvider' defined in URL [jar:file:/D:/IT/maven/repository/io/springfox/springfox-spring-web/2.7.0/springfox-spr原创 2021-06-28 18:44:52 · 1566 阅读 · 0 评论 -
Could not autowire. No beans of ‘UmsMemberMapper‘ type found
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'pmsBrandController': Unsatisfied dependency expressed through field 'pmsBrandService'; nested exception is org.springframework.beans.factory.BeanCreationExcep.原创 2021-03-24 00:09:47 · 488 阅读 · 0 评论