排查出具体的类,然后将冲突的类删除掉即可
Method[] methods = Base64.class.getMethods(); // 输出实际jar包路径 System.out.println(Base64.class.getProtectionDomain().getCodeSource().getLocation()); System.out.println("--------------------------开始输出方法"); for (Method m : methods ) { System.out.println(m.getName()); }