在看spring源码org.springframework.boot.autoconfigure.AutoConfigurationImportSelector时发现有如下List去重方法,记录下
protected final <T> List<T> removeDuplicates(List<T> list) { return new ArrayList<T>(new LinkedHashSet<T>(list)); }
在看spring源码org.springframework.boot.autoconfigure.AutoConfigurationImportSelector时发现有如下List去重方法,记录下
protected final <T> List<T> removeDuplicates(List<T> list) { return new ArrayList<T>(new LinkedHashSet<T>(list)); }
转载于:https://www.cnblogs.com/kwpsz/p/10952220.html