spring-guides / gs-rest-service

Building a RESTful Web Service :: Learn how to create a RESTful web service with Spring.

Home Page:https://spring.io/guides/gs/rest-service/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gradle bootRun doesn't work inside /initial

jeanbza opened this issue · comments

jadekler at Jeans-MacBook-Pro in ~/Documents/gs-rest-service/initial on master
$ gradle bootRun
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:findMainClass
:bootRun FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':bootRun'.
> No main class specified

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2.801 secs

The initial copy cannot run, because there isn't any code yet. The initial version of a guide is generally aimed at providing an empty project setup so you can copy-and-paste your way towards the working copy (complete) at the end.

Ah, thanks! Makes sense.