Loading

【InstantiationException】:tk.mybatis.mapper.provider.base.BaseInsertProvider

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包下的。

posted @ 2021-07-12 17:20  Acelin_H  阅读(268)  评论(0编辑  收藏  举报