spring boot mvc: failed after following the sample

前端 未结 1 755
鱼传尺愫
鱼传尺愫 2021-01-25 07:06

I am following the link https://github.com/spring-guides/gs-serving-web-content

After check out the files, import gs-serving-web-content/complete into IDEA, and run it.

相关标签:
1条回答
  • 2021-01-25 07:39

    The following

    java.lang.NoClassDefFoundError: org/apache/tomcat/util/log/UserDataHelper
    

    means that you're lacking a tomcat-july.jar.

    The following, however,

    Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)
    

    means that you have a corrupted dependency. My bet would be that the embedded tomcat dependencies did not got downloaded properly. If I were you, I would back-up and delete the .m2\repository\org\apache\tomcat\embed and run the example again, so that it downloads the dependencies again

    0 讨论(0)
提交回复
热议问题