springboot启动时排除指定类

@ComponentScan(excludeFilters = {@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = {A.class})})

A.class为需要排除的指定类

你可能感兴趣的:(java)