This is a sample Java 11 project with 3-layered architecture. The code is separated into 3 distinct logical groupings, namely controllers, services, and repositories. Each grouping has different concerns.
- Controllers deal with data presentation.
- Services deal with business logic.
- Repositories deal with data retrieval, storage, and manipulation.
- Java 11
- Maven +3.9.3
- Install Java 11, link: https://java.com/en/download/help/windows_manual_download.html
- Install Maven +3.9.3, link: https://maven.apache.org/install.html
- In terminal, go to a folder that contains the source code
- Run
mvn clean packageto package the app into a jar - Run
java -jar target/project-1.0-SNAPSHOT.jar - At this point, the app fails since no "jdbc_url" is specified