解决 No MyBatis mapper

颜博达
2023-12-01
o.m.s.mapper.ClassPathMapperScanner: No MyBatis mapper was found in '[com.merckgroup.app]' package. Please check your configuration.

启动项目时会出现警告:No MyBatis mapper was found in [...]

解决方案:添加类NoWarnMapper,与Application在一个层级。

@org.apache.ibatis.annotations.Mapper
public interface NoWarnMapper{}

 类似资料: