H5W3
当前位置:H5W3 > 问答 > 正文

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文件也配置好了,项目运行没有问题,但是不想看到警告

回答

加一个伪Mapper就能解决。
https://my.oschina.net/kevin2…

未经允许不得转载:H5W3 » mybatis警告No MyBatis mapper was found in

赞 (0)

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址