Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 1.52 KB

readme.md

File metadata and controls

31 lines (26 loc) · 1.52 KB

How to enable devtools in IntelliJ:

  1. Add the following configuration onto the pom file:
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <scope>runtime</scope>
    <optional>true</optional>
</dependency>
  1. Under the section compiler, check the option: compiler.png
  2. Finally, under advanced settings/compiler section, check the box: advanced_settings.png

Facilitating Strategy pattern using Spring Plugin library

This is an example of Spring Plugin library applied to an Hexagonal Architecture use case where we're required to introduce another repo implementation that runs in tandem with the existing one.

One of the requirements is to vary the order of execution between implementations, e.g. first db, then http, etc.

One improvement would be to play with the Plugin#supports method so that some repo implementations can be dynamically changed based out of a configuration property, although it would required the RepoStrategy#plugins to be refreshed upon configuration updates. This video helped me discover this great library.

Other useful notes