java-tutorials/hexagonal-architecture

Hexagonal Architecture

A quick and practical example of Hexagonal Architecture using Spring boot.

This application is using h2 database,which can be accessible http:/localhost:8080/h2

Main Application schema : hexagonal

Test Application Schema : hexagonal_test

  1. Rest Api : execute App

  2. Batch processing : We need to configure active profile as batch i.e. -Dspring.profiles.active=batch and execute ConsoleApp

  3. Test case : ProductServiceTest