How to setup Spring Boot RESTful API in 5 minutes

GroupID: unique identifier of your project. Often reversed company domain name. Ex) sandbox.com → com.sandbox

ArtifactID: name of the jar file without version.

** Add Spring Web on your dependencies. Spring Web provides embedded tomcat by default.

2. Create Controller and POJO.

** It uses Jackson JSON internally. So I don’t have to convert POJO into JSON.

3. Run Spring Boot!

./gradlew bootRun
./gradlew build
java -jar build/libs/pilot-0.0.01-SNAPSHOT.jar

IDE can provide such commands in button form.

Official Documentation is on: https://spring.io/guides/gs/rest-service/

It was nice to NOT configure tomcat, and Jackson JSON conversion, which where two hurdles I have faced coming from Node.js background.

--

--

--

Software Engineer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Javascript Closures, Partial Functions, and Currying

AngularJS security series part 1: Angular $http service

Vue JS — Filters

Headless CMS: Enable In-Context Preview and Editing in an External Application

WebStorm for Windows

A Simple Carousel with Scroll Indicator in React using hooks

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jinwon Park

Jinwon Park

Software Engineer

More from Medium

DTO vs VO

Implementation of stack using array in C — SS Blog

Implementation of stack using array in C — SS Blog

Top 10 AngularJS Developer Tools in 2022

What is the best programming language?