This project serves the goal of a quick introduction to some important features of the Spring framework. The topics covered in this project include:
-
Project setup and layout
- Maven
-
Configuration
-
Option 1: Spring XML and annotation hybrid
-
Option 2: Spring Java-based configuration without XML
-
Use Spring profile to manage which configuration setting will be used at runtime
-
-
Data access
- Option 1: Spring JDBC support (simple but elegant)
- Option 2: Spring Data JPA Repositories
-
Transaction management
- Spring supported declarative transaction management through annotation
-
AOP
- Simple logging and timing aspects using AspectJ based AOP through Spring
-
Unit test
- Spring test context
- Embedded HSQL database