If you are using Gradle, you can run your service at the command line this way:
./gradlew clean build && java -jar build/libs/{project_id}-0.1.0.jar
Note
|
If you are using Maven, you can run your service by typing mvn clean package && java -jar target/{project_id}-0.1.0.jar. |
You can alternatively run the app directly from Gradle like this:
./gradlew bootRun
Note
|
With mvn, you can run mvn spring-boot:run .
|