问题:是因为没有扫描到Mapper
解决:
1.在类上加注解
@Mapper public interface SysNameMapper extends BaseMapper<SysName> { }
2.启动类上没有扫描到
@SpringBootApplication @MapperScan("com.sch.**.*.mapper")//表示任意包 public class ExcelApplication extends SpringBootServletInitializer {