Hexagonal architecture with Spring Boot

Bertil Muth
1 min readMay 17, 2019

--

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.

--

--