errors-spring-boot-starter
errors-spring-boot-starter copied to clipboard
Modularizing the Project
Synopsis
Currently, we only support the 2.x.x
versions of Spring Boot. Supporting multiple versions of Spring Boot in a single codebase seems complicated, since each major release may introduce conflicting and backward-incompatible changes.
Motivation
With a few simple changes, we should be able to support the 1.5.x
but I couldn't find a way to pull this off, yet! Also, supporting future versions may get as complicated.
Recommended Solution
One solution is to modularize (not to be confused with JPMS) the project. That is, we can create:
- A Core Module containing the basic and version agnostic abstractions like
WebErrorHandler
,FingerPrintProvider
orHttpError
. - One dedicated module for each Spring Boot version, e.g.
1.x.x
,2.x.x
, etc.