问答详情
源自:3-3 datasource和sessionfactorybean的配置

启动报错:No MyBatis mapper was found in '[com.imooc.demo.config.dao]' package. Please check your configuration.

No MyBatis mapper was found in '[com.imooc.demo.config.dao]' package. Please check your configuration.

提问者:慕后端5959719 2020-08-27 00:41

个回答

  • programming_is_fun
    2020-08-27 16:33:55

    原因是 你的程序没有找到你的mapper.xml,大概率是你配置的路径有问题。检查下下你的 application.propertities的

    mapper_path=/mapper/**.xml