是这样的,在配置mapper扫描包的时候,我本来是想导入tk.mybatis.spring.annotation.MapperScan包的,但一直找不到,只有org.mybatis.spring.annotation.MapperScan的包。经过几次查询发现,是tk.mybatis版本的问题,之前用的是1.1.1的版本。后面用2.0.3的版本,重新clean,install之后。导报就发现有tk.mybatis.spring.annotation.MapperScan了
springboot引入tk.mybatis却老是导到org.mybatis.spring.annotation.MapperScan扫描包
最新推荐文章于 2024-05-27 19:00:00 发布