问答详情
源自:3-6 dao层开发

mapper路径问题

java.io.FileNotFoundException: class path resource [classpath*:mapper/**.xml] cannot be opened because it does not exist

报这个错误,但是mapper是有创建的

提问者:慕前端2695438 2019-07-24 17:19

个回答

  • 慕运维005214
    2019-08-05 17:19:41

    有没有在配置文件中配置 

    mybatis:
      mapper-locations: classpath*:mapper/*.xml
      type-aliases-package: com.imooc.weixin.domain