Hexagonal architecture with Spring Boot

I created a small sample application.It shows a way to implement a hexagonal architecture in Java:

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:

Here’s an article that describes how this works:

Let me know what you think in the comments.

Agile coach and developer. Follow me on Twitter: https://twitter.com/BertilMuth

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store