- Setup project file and folder structure
- use Spring Initializer and include:
- Spring Web
- Spring Data JPA
- H2 Database (or your choice of DB)
- Lombok
- MapStruct
-
create main packages:
domain,app,web,infra -
Project properties
- add property app host with value to
https://api.example.cominapplication.propertiesorapplication.yml - access properties via
@Valueor/andEnvironmentand print on home/endpoint