MyBatis-Spring-Boot
MyBatis-Spring-Boot copied to clipboard
升级到 2.0.0 会出现警告信息
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") 是这样的。前一个版本不会出现这样的警告信息
警告无所谓。
但是你这里确实没有 Mapper 接口吗?
是不影响使用,我的包结构是这样的: com.tts.exam -mapper -core -xxxx.
确实有这个警告,并且出现了两行搞不懂,但是能正常使用

@shx1545 一个 tk.mybatis 一个 org.mybatis。。
@abel533 是的,虽然能正常使用,但是看着挺别扭的