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

Cause: java.lang.InstantiationException: tk.mybatis.mapper.provider.base.BaseInsertProviderjava

第一 檢查啓動類的註解spring

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

相關文章
相關標籤/搜索