出现这个问题一般是jar包冲突了,我找了很久没找到是哪个jar冲突了。最后用下面的这段代码,找到是哪个jar冲突了

/**
     * find jar file 
     */ 
    String LOCATION = ""; 
    String URLLOCATION = ""; 
    try {     
        LOCATION =[YourJavaFile].class.getProtectionDomain().getCodeSource().getLocation().getFile(); 
        URLLOCATION =  URLDecoder.decode(LOCATION, "UTF-8"); 
    } catch (UnsupportedEncodingException e) { 
        logger.error("get LOCATION error", e); 
    } 
    logger.debug("** loc=" + LOCATION + "; URLLoc=" + URLLOCATION);

这个能找出与你的方法冲突的jar包是哪一个。这时,你就可以把对应的jar拿出来,进行分析了。解决办法:修改冲突jar的package名称

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2021-08-01
  • 2021-05-19
  • 2021-08-10
  • 2021-05-18
  • 2022-01-14
猜你喜欢
  • 2021-07-02
  • 2021-04-06
  • 2021-12-25
  • 2021-08-03
  • 2022-12-23
  • 2021-06-20
  • 2022-12-23
相关资源
相似解决方案