I'm using W11 with vscode and, following the README.mdI was unable to start the API.
Error:
> Task :run FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':run'.
> No main class specified and classpath is not an executable jar.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
2 actionable tasks: 1 executed, 1 up-to-date
I found the solution executing ./gradlew bootRun instead of ./gradlew run. Maybe we can update the README.md adding ./gradlew bootRun command on the 6 step in case of error.
All the previous steps worked fine. :)
The main difference between ./gradlew bootRun and ./gradlew run is:
./gradlew bootRun : standard gradle'run' task with additional Spring Boot features. e.g. you can type: bootRun {addResources = false}check github.
./gradlew run: standard gradle 'run' task.
I'm using W11 with vscode and, following the README.mdI was unable to start the API.
Error:
I found the solution executing
./gradlew bootRuninstead of./gradlew run. Maybe we can update the README.md adding./gradlew bootRuncommand on the 6 step in case of error.All the previous steps worked fine. :)
The main difference between
./gradlew bootRunand./gradlew runis:./gradlew bootRun: standard gradle'run' task with additional Spring Boot features. e.g. you can type: bootRun {addResources = false}check github../gradlew run: standard gradle 'run' task.