There is no getter for property named ‘sql‘in ‘XXX.XXXDo‘ 踩坑

it2023-02-26  81

1、描述一下场景:流程已经通过postman测试通过获取到数据,只是加入了@FeignClient,所以就一直考虑是FeignClient出问题了,没有考虑其他,,,,,,还是没忍住看了一下mybstis映射文件,是有一个 {sql} 字符串替换,但是已经注释掉了(之前没提示这个问题),不知道idea怎么又读出来了。。。。。。。。。。。坑,删除红色圈中部分

错误日志: [2020-10-20 13:31:16.321][ERROR][http-nio-9001-exec-1][tansun-rcc-controller,,,,] [org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[dispatcherServlet]] {"service_status":"","service_msg":"","service_txcode":"","service_sid":""} - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'sql' in 'class com.xx.xxx.entity.XXXDo'] with root cause org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'sql' in 'DcRegionDo' at org.apache.ibatis.reflection.Reflector.getGetInvoker(Reflector.java:419) at org.apache.ibatis.reflection.MetaClass.getGetInvoker(MetaClass.java:164) at org.apache.ibatis.reflection.wrapper.BeanWrapper.getBeanProperty(BeanWrapper.java:162)

最新回复(0)