![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
bug记录
有梦想的蜗牛( Don't want )
努力做最好的自己
展开
-
class path resource [.xml] cannot be opened because it does not exist或者是编译时mybatis的xml文件没有生成
问题:class path resource [.xml] cannot be opened because it does not exist或者是编译时mybatis的xml文件没有生成 产生原因:idea默认是不编译 src\main\java下的xml文件的 解决方法: <resources> <resource> <direc...原创 2019-09-02 14:30:16 · 1133 阅读 · 0 评论 -
org.springframework.beans.factory.BeanNotOfRequiredTypeException:
问题:org.springframework.beans.factory.BeanNotOfRequiredTypeException:Bean named 'goodsFacadeImpl' is expected to be of type 'com.dada.base.facade.GoodsFacadeImpl'but was actually of type 'com.sun.pro...原创 2019-09-16 15:24:45 · 341 阅读 · 0 评论 -
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
解决方法:即在mybatis中dao接口与mapper配置文件在做映射绑定的时候出现问题,简单说,就是接口与xml要么是找不到,要么是找到了却匹配不到 (1)检查mapper的namespace对不对 (2)检查mapper章返回值类型和接口中返回值类型是否一致 (3)检查mapper的配置路径是否正确 ...原创 2019-09-16 15:28:20 · 104 阅读 · 0 评论