MyBatis-Spring-Boot icon indicating copy to clipboard operation
MyBatis-Spring-Boot copied to clipboard

升级到 2.0.0 会出现警告信息

Open ghost opened this issue 7 years ago • 5 comments

org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider [142] : No MyBatis mapper was found in '[com.tts.exam]' package. Please check your configuration.

@MapperScan("com.tts.exam.mapper") 是这样的。前一个版本不会出现这样的警告信息

ghost avatar Mar 21 '18 06:03 ghost

警告无所谓。

但是你这里确实没有 Mapper 接口吗?

abel533 avatar Mar 24 '18 09:03 abel533

是不影响使用,我的包结构是这样的: com.tts.exam -mapper -core -xxxx.

ghost avatar Mar 24 '18 09:03 ghost

确实有这个警告,并且出现了两行搞不懂,但是能正常使用 image

ghost avatar Mar 30 '18 05:03 ghost

@shx1545 一个 tk.mybatis 一个 org.mybatis。。

abel533 avatar Mar 30 '18 08:03 abel533

@abel533 是的,虽然能正常使用,但是看着挺别扭的

ghost avatar Mar 30 '18 15:03 ghost