Spring Design Patterns

Posted on July 15, 2017
Tags: java

1 Theory


Person --> [API/Controller] --> [Service Layer] --> [Data Access Layer] --> [SQL DB]

2 Spring patterns

2.1 IOC

  • IOC is the one that constructs and maintains the reference of objects

3 General

3.1 Flyweight

  • Java String uses flyweight
  • Basically a hashmap of singletons
  • Reduces memory consumed by limiting repetitive objects

4 API