Cause: java.lang.InstantiationException: tk.mybatis.mapper.provider.base.BaseInsertProvider
第一 检查启动类的注解
@EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class})
@EnableAspectJAutoProxy(exposeProxy = true)
@SpringBootApplication(scanBasePackages = {"com.sitech.acctmgr"}, exclude = {DataSourceAutoConfiguration.class})
@MapperScan("com.sitech.acctmgr.*.mapper")
@EnableCnttClient
@ComponentScan(excludeFilters = @ComponentScan.Filter(type = FilterType.REGEX, pattern = "com.sitech.crmpd.idmm*.*"))
@EnableScheduling
@EnableAsync
public class BillServiceApplication {
public static void main(String[] args) {
try {
SpringApplication.run(BillServiceApplication.class, args);
} catch (Exception e) {
e.printStackTrace();
}
}
}
mapperScan是 tk.mybatis.spring.annotation包下的。