Skip to main content

Mini Project: Hexagonal Architecture with an Enforced Rule

Learn Mini Project: Hexagonal Architecture with an Enforced Rule (Architecture & Clean Code, Spring Boot) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Mini Real-Time Project: Hexagonal Architecture with an Enforced Rule Problem Business rules must not depend on frameworks or databases, so they can be tested alone and the technology can change. Build a small hexagonal (ports and adapters) application and check the dependency rule automatically. Requirements A domain class with the business rule and no framework imports. Ports (interfaces) for storage and payment, owned by the application layer. Adapters that implement the ports, wired by Spring. A check that the domain and use case classes carry no Spring annotations. Concepts Used hexagonal...

More lessons in Architecture & Clean Code