0
我的junit
失败时,我运行eclipse
。但是当我运行使用命令行maven
时,它会成功。junit失败,但在通过maven命令行运行时通过
java.lang.ClassCastException: org.springframework.security.core.authority.GrantedAuthorityImpl cannot be cast to java.lang.Comparable
at java.util.TreeMap.compare(Unknown Source)
at java.util.TreeMap.put(Unknown Source)
at java.util.TreeSet.add(Unknown Source)
检查Spring依赖关系。我认为这个错误是由图书馆冲突产生的。 – ivoruJavaBoy