From 288f2d4c14829800c1ba288865e21deb3a15b5b9 Mon Sep 17 00:00:00 2001 From: aisensiy Date: Fri, 18 Aug 2017 18:51:34 +0800 Subject: [PATCH] update readme for how it works --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 3113b40..8449305 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,17 @@ For more information on how to this works with other frontends/backends, head ov The application uses Spring boot (Web, Mybatis). +* Use the idea of Domain Driven Design to separate the business term and infrastruture term. +* Use MyBatis to implement the [Data Mapper](https://martinfowler.com/eaaCatalog/dataMapper.html) pattern for persistence. +* Use [CQRS](https://martinfowler.com/bliki/CQRS.html) pattern to separate the read model and write model. + +And the code organize as this: + +1. `api` is the web layer to implement by Spring MVC +2. `core` is the business model including entities and services +3. `application` is the high level services for query with the data transfer objects +4. `infrastructure` contains all the implementation classes as the technique details + # Security Integration with Spring Security and add other filter for jwt token process.