mybatis警告No MyBatis mapper was found in

Skipping MapperFactoryBean with name 'demoMapper' and 'dry.module.example.mapper.DemoMapper' mapperInterface. Bean already defined with the same name!

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

我没有在启动类上添加@MapperScan,但是我在每一个类上添加了@Mapper的,xml文件也配置好了,项目运行没有问题,但是不想看到警告

阅读 7.2k
1 个回答
新手上路,请多包涵
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进