I created a small sample application.It shows a way to implement a hexagonal architecture in Java:
A simple example for a hexagonal architecture. Contribute to bertilmuth/poem-hexagon development by creating an account…
Poem-hexagon just prints a random poem from a fixed list to the console.
But there’s a Spring Boot adapter as well. Built on the hexagon. It’s in a separate deployment artifact to illustrate the modularity. It gets poems from a Spring repository, then transforms them to a website using Thymeleaf and Spring MVC:
A Spring Boot application that builds on poem-hexagon. It provides adapters for a database repository and Spring MVC. …
Here’s an article that describes how this works:
Implementing a hexagonal architecture
A hexagonal architecture simplifies deferring or changing technology decisions. You want to change to a different…
Let me know what you think in the comments.