![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java异常
烂柯人LQE
想要多多学习
展开
-
2021-05-10
2 字节的 UTF-8 序列的字节 2 无效。这个问题是因为在xml文件中的中文注释的问题,有两种解决方案:一、将xml文件的中文注释全部删除,解决二、将xml文件顶部的encoding=UTF-8改为encoding=UTF8可以解决问题...原创 2021-05-10 09:58:46 · 30 阅读 · 0 评论 -
2021-05-09
There is no getter for property named ‘user’ in ‘class’问题可能的原因1.字段名写错了2.@Param注解问题方法只有一个参数时, 如果xml文件中使用#{user.userId}, 则必须添加@Param注解方法只有一个参数时, 如果xml文件中使用#{userId}, 则不必添加@Param注解方法有多个参数时, xml文件必须使用#{user.userId}, 不必添加@Param注解正确写法写法一//Ma..转载 2021-05-09 10:06:23 · 181 阅读 · 0 评论 -
2021-05-08
写一些刚学习mybatis遇到的异常Exception in thread "main" org.apache.ibatis.exceptions.PersistenceException: ### Error updating database. Cause: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'user' in 'class com.entity.Use原创 2021-05-08 18:10:33 · 54 阅读 · 0 评论 -
2021-05-07
No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalancer?今天遇到个这个异常,猛一看,以为忘记加@RestController才出现这种错误。后来查看资料才知道,原来Spring Cloud Feign在Hoxton.M2 RELEASED版本之后不再使用Ribbon而是使用spring-cloud-loadbalancer,所以不引入spring-clou原创 2021-05-07 09:35:51 · 56 阅读 · 0 评论