Why does Spring Boot web app close immediately after starting?

后端 未结 10 2366
南笙
南笙 2021-02-18 15:57

Using STS, if I import the \"Rest Service\" Getting Started project using the latest Spring Boot and choose \"Run As Spring Boot App\", it starts up, t

10条回答
  •  醉话见心
    2021-02-18 16:31

    I just had the same problem and spent a while searching for a solution. I know the question is a few years old now but this might save someone else's time in future.

    I got this warning message when I ran mvn clean install:

    [WARNING] error reading /Users/fotouhm/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/8.5.16/tomcat-embed-core-8.5.16.jar; zip file is empty
    

    Turns out for some reason this file was corrupted. Just go to the link below and replace it.

    http://central.maven.org/maven2/org/apache/tomcat/embed/tomcat-embed-core/8.5.16/tomcat-embed-core-8.5.16.jar

提交回复
热议问题