10 Steps to configure a CRUD Web application using Spring,Hibernate, and JSP

Here are the basic steps (broad overview)  to create a CRUD (Create,Read,Update,Delete) Web application using Spring, Hibernate and a DB Provider such as MySql.  I’ll make another future post to outline the details.

 

1. Using Eclipse  (Juno is the latest as of this post), setup a Dynamic Web Project and convert it to maven project.

2. Add the dependencies : be sure to clean install in maven to put your needed jars in the project so you won’t have library issues.

3. Setup the Database (connection, url)

4. create model class – add JPA annotations.

5. Create DAO components – @ Repository.

6. Add Service Components – @ Service.

7. Create Controller component – @Controller
– be sure to put BindingResult immediately after @ModelAttribute to avoid issues.

8. Create the View components – JSPs.

9. Configurations
– jdbc.properties.
-spring-servlet.xml
-log4j.xml
-hibernate.cfg.xml
-finally web.xml

10. Setup a web container (JBoss, Tomcat, Websphere) , clean compile and deploy!

Published by anthonykuong

Anthony is a versatile Software professional with around 10 years of experience. He is a Full Stack developer experienced with clients in the Financial, Health and Supply Chain industries. He is experienced with MVC frameworks ( Spring Boot) , SPA frameworks ( Angular , VueJS), and also supports automated build deployments and packaging for development, qa, and production servers.. He has delivered rich user experience using Modern web technologies and techniques such are HTML5, CSS3, ECMAScript 6 (ES6)/ ECMAScript 2015, CSS pre-processors (SASS, Less), JavaScript build tools (Grunt, Gulp) , various UI Frameworks including AngularJS , Knockout JS , and CSS Frameworks including Bootstrap, and Foundation. He is adaptable to new technologies and frameworks. He is a rigorous, quality-conscious contributor with solid analytical skills. I can also be found on youtube - Youtube Channel: https://www.youtube.com/user/akuong/

Leave a comment