Basic Spring Framework application, it covers and works with two of the styles of configuration available about the mechanism of Dependency Injection used by Spring. The sample code uses two kind of layers, they are a Repository and a Service, it how a best practice.
Furthermore, about Java Programming, the composition applied between the components such as a Repository to a Service, is done through interfaces and not through concrete classes. It how a best practice, for the purpose to swap out components easily.
This application works with a real persistence mechanism, therefore, it works with a Database, it is with HSQL. Furthermore including Transaction Management support.
This application is working through a Web Environment, furthermore using the MVC Pattern.
The view technology used is JSP.
The complete and detailed explanation of the source code, is available here:
Consider to check the complete Spring Roadmap, where you have available thirteen tutorials.
The sample application has the following features:
- XML
- Annotation
- JavaConfig
This sample application is working through the following technologies:
-
- Apache Maven
-
- HSQL
-
- Spring Framework
- Spring Transaction
- Spring JDBC
- Spring MVC
- Spring Boot
-
- JSP
- Thymeleaf
- The pom.xml file is configured to work with Java 8. Feel free to change it to Java 7, it works too.