Spring is arguably one of the most popular Java frameworks, and also a mighty beast to tame. While its basic concepts are fairly easy to grasp, becoming a strong Spring developer requires some time and effort.
In this article, we’ll cover some of the more common mistakes in Spring, specifically oriented towards web applications and Spring Boot. As Spring Boot’s website states, Spring Boot takes an opinionated view on how production-ready applications should be built, so this article will try to mimic that view and provide an overview of some tips which will incorporate well into standard Spring Boot web application development.
In case you are not very familiar with Spring Boot but would still like to try out some of the things mentioned, I’ve created a GitHub repository accompanying this article. If you feel lost at any point during the article, I’d recommend cloning the repository and playing around with the code on your local machine.