原因之前配置了
@MapperScan("com.hupun.luban.css")
然后调用ScmCompanyService的getCompanyById 方法时,认为是mybatis的接口所以报错.
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.hupun.luban.css.service.ScmCompanyService.getCompanyById
at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:227)
at org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:49)
at org.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:65)
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:58)
at com.sun.proxy.$Proxy168.getCompanyById(Unknown Source)
at com.hupun.luban.css.controller.DingDingUserController.getScmCompany(DingDingUserController.java:177)
at com.hupun.luban.css.controller.DingDingUserController.getScmComInfo(DingDingUserController.java:124)
at com.hupun.luban.css.controller.DingDingUserController.getDingDingUser(DingDingUserController.java:78)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)