reset password

Spring and Hibernate From Scratch

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

Before we begin, let me first point out that the easiest way to create a Spring/Hibernate project is to use an Maven archetype, and there are a whole bunch of these archetypes out there. The problem is that there are many different ways to set up a Spring/Hibernate project (there's a reason why there are so many different Spring/Hibernate archetypes), and it is pretty hard to find an archetype that does things in exactly the way you want. Even if you do find such a perfect archetype (which I plan to create some time in the future), you still need to understand the project structure and the configuration files because chances are you'll need to change them during development, and this is the reason why I think a guide like this is very helpful.

This page has been viewed 38518 times.