原因是Application.class中@MapperScan的注解,导入包应该为
import tk.mybatis.spring.annotation.MapperScan;
而不是
import org.mybaties.spring.annotation.MapperScan;
原因是Application.class中@MapperScan的注解,导入包应该为
import tk.mybatis.spring.annotation.MapperScan;
而不是
import org.mybaties.spring.annotation.MapperScan;