For the latest stable version, please use Spring Cli 0.9.0!

Getting Started

Creating a new project is as simple as typing spring boot new my-app

spring boot new my-app

The output will be

Cloning project from https://github.com/rd-1-2022/rest-service
Created project in directory 'my-app'

Note If the CLI seems to be stuck at the cloning step, you might be hitting GitHub rate limiting. Use the command spring github auth login to authenticate.

You can now cd into the my-app directory and build and run the application, which is a simple web application with a single endpoint by default.

cd my-app
./mnvw spring-boot:run

Then in another terminal windows, interact with the endpoint using curl.

curl http://localhost:8080/greeting

which returns the default 'Hello World' greeting

{"id":1,"content":"Hello, World!"}

The README.adoc file in the new project contains more information on how the web applications works.

Next steps

The section Creating New Projects shows you how to create applications other than the default application.

The section Adding To Existing Projects shows you how to add additional applications into your current working project.