dyeed
V2EX  ›  Java

springBoot 项目异常求解决: IncompatibleClassChangeError

  •  
  •   dyeed · Jan 28, 2021 · 2236 views
    This topic created in 1949 days ago, the information mentioned may be changed or developed.

    springboot 项目打成 jar 包可以运行,但是在 IDEA 和 Eclipse 中启动都报错 Invocation of init method failed; nested exception is java.lang.IncompatibleClassChangeError

    有没得大佬解决过的?

    Supplement 1  ·  Jan 29, 2021
    解决啦!!
    T 。T
    竟然是因为 JDK1.8 的小版本太低。。。升级了 JDK1.8 的小版本后竟然真的解决了!?!?奇奇怪怪
    1 replies    2021-01-28 21:11:18 +08:00
    Troevil
        1
    Troevil  
       Jan 28, 2021
    应该是包冲突了,idea 里面安装 maven helper 之后 ,打开启动项目的 pom 选择 dependency analyzer 查一下冲突的 jar,然后把不需要的 exclude 掉 应该就好了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3006 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 53ms · UTC 13:55 · PVG 21:55 · LAX 06:55 · JFK 09:55
    ♥ Do have faith in what you're doing.