reset password

Spring and Hibernate From Scratch

In this guide I will describe the process to create a Spring and Hibernate web application from scratch - or actually, almost from scratch as we will start with a simple Maven project created using Eclipse.

We will use a sample project called springmvc to illustrate the process. The project name will appear in various configuration files, and needless to say you should change it to the name of your project. The software we will be using is Eclipse for Java EE Developers with a few additional plugins as described here. We assume that the application server is Tomcat 7 (or anything supports Servlet 3.0 Specification), and the DBMS is PostgreSQL (or anything supported by Hibernate). We will divide the process into several steps: we first create a Maven web project, then add Spring MVC, Hibernate, TestNG, and Spring Security. The source code of springmvc is available at https://github.com/cysun/cs5220-springmvc.git, and under the repository tags you can find the project after each step.

1. Maven Web Application

2. Spring MVC

3. Hibernate

4. Spring Security

This page has been viewed 38520 times.