在看spring源码org.springframework.boot.autoconfigure.AutoConfigurationImportSelector时发现有如下List去重方法,记录下
protected final <T> List<T> removeDuplicates(List<T> list) { return new ArrayList<T>(new LinkedHashSet<T>(list)); }