简体   繁体   中英

Spring Boot - Process finished with exit code 0

I've looked at various links to stackoverflow and other sites to see if anyone else faced a similar issue. I found a few but none of them had solved my problem. Tried to fiddle around with some of the answers but still nothing worked;

I've got a Spring Boot Application, and when booted up, it shows Process finished with exit code 0 . I've added the necessary dependencies to allow the application to know it's a Web App but still it does not work. I've also tried cleaning + building from Maven as well as refreshing it.

Here's my Setup

pom.xml

在此处输入图像描述

console output在此处输入图像描述

Figured out the issue. For some reason, Spring Boot 3.0.0 paired with Java 17 was causing the "silent error" of exit code 0. I've changed my Spring Boot to 2.7.6, java version to 11, and SDK to 11. Everything worked fine.

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.7.6</version>
    <relativePath/> <!-- lookup parent from repository -->
</parent>


<java.version>11</java.version>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM