Skip to content

tejada7/spring-certification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Preparation for the Spring VCP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published