No MyBatis mapper was found in '[com.xxx.xxx]' package. Please check your configuration.

【问题】项目启动时报错

2022-10-28 15:47:01.812 |  INFO 7040 | main [TID: N/A] .s.d.r.c.RepositoryConfigurationDelegate | Multiple Spring Data modules found, entering strict repository configuration mode
2022-10-28 15:47:01.814 |  INFO 7040 | main [TID: N/A] .s.d.r.c.RepositoryConfigurationDelegate | Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2022-10-28 15:47:01.833 |  INFO 7040 | main [TID: N/A] .s.d.r.c.RepositoryConfigurationDelegate | Finished Spring Data repository scanning in 7 ms. Found 0 Redis repository interfaces.
2022-10-28 15:47:01.997 |  INFO 7040 | main [TID: N/A] o.j.m.auto.MinidaoAutoConfiguration      |  ******************* init miniDao config [ begin ] *********************** 
2022-10-28 15:47:01.998 |  INFO 7040 | main [TID: N/A] o.j.m.auto.MinidaoAutoConfiguration      |  ------ minidao.base-package ------- org.jeecg.modules.jmreport.desreport.dao*
2022-10-28 15:47:01.998 |  INFO 7040 | main [TID: N/A] o.j.m.auto.MinidaoAutoConfiguration      |  *******************  init miniDao config  [ end ] *********************** 
2022-10-28 15:47:02.009 |  WARN 7040 | main [TID: N/A] o.m.s.mapper.ClassPathMapperScanner      | No MyBatis mapper was found in '[com.jyxpackaging.crm.server]' package. Please check your configuration.
2022-10-28 15:47:02.155 | ERROR 7040 | main [TID: N/A] o.s.boot.SpringApplication               | Application run failed

java.lang.ExceptionInInitializerError: null
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:348)

【原因】import 引入依赖错误的问题!

找了一下午,终于一步一步排查,找到了源头!!!

【解决】重新引入正确的Mapper依赖

 

posted @ 2022-10-28 15:58  changlinlo  阅读(1394)  评论(0编辑  收藏  举报