Spring and Hibernate are one of the most favourite frameworks to build web applications in real world. Spring not only provides a mature service layer but also gives good integration with Hibernate. Spring also provides MVC to build front end pieces and Spring security to take care of authentication and authorization. Apart from that on browser side jquery has proven itself with time. I have put together a sample web application, where one can see how the different frameworks are integrated. The web application has a login page and a listing page.
The versions of different frameworks used are:
- Spring version 4.0.5.RELEASE - Tutorials on Spring
- Hibernate version 4.3.5.Final - Tutorial on Hibernate
- Spring Security version 3.2.4.RELEASE Tutorials on Spring Security (Look for Spring security section)
- Tiles version 3.0.4
- jQuery - 2.1.1
- jQueryUI - 1.11.1
- Tomcat 7
The web application is hosted at GitHub. Look for folder springHibernateWebApp. To run the application you will need to have Java Installed . Also you will need Maven to run it. For database it uses Postgres 9.4+ version. Though you can change it and point to any database. That's one of the advantage of using Hibernate.
Once you download the code, go to artifacts/doc/Setup.txt and follow it.
Enjoy coding :)
Video explaining the steps
Video explaining the steps
No comments:
Post a Comment