Spring Boot features many starter
dependencies with various purposes, such as
spring-boot-starter-web
for web and rest features, spring-boot-starter-jpa
for database orm, etc…
A starter
may be seen as a library, with an auto-configuration feature.
It could be used out-of-the-box without any further configuration, unless you
choose to setup something outside defined starter standards.
A starter is a good way to avoid rewriting, while keeping common code well organized and
compatible with Spring way of doing things.
Our goal here is to build a custom starter with error management and monitoring
features. We’ll proceed step by step to get a complete project, including a couple
of starters, commons library, and also an App which provides unit testing and also
demonstrates our starter usage.
|
I’m using Maven to build this project. I’ve tried to switch to Gradle, but for
a few reasons I’ve decided to stick with Maven, although I know its caveats.
I’ve also read a few articles about Maven vs Gradle ; in some way, I concluded
that Gradle may be as complex as Maven. I’m way more experienced with Maven.
But feel free to contribute / fork to help me :)
|