![]() Notice that in my pom.xml, there is no database driver. NOTE: I noticed that some of the readers are getting database connection issues. ![]() ![]() I am using Apache Commons DBCP for connection pooling, but in real life situations, most probably you have connection pooling done by the container and all we need is to provide the JNDI reference details to use. Important dependencies above are spring-context, spring-webmvc, spring-tx, hibernate-core, hibernate-entitymanager and spring-orm. Some of the dependencies above are included by STS (Spring Tool Suite) when I create Spring MVC project. Let’s look at all the maven dependencies are required for hibernate and spring MVC framework integration. Note that I am using Spring 4.0.3.Release and Hibernate 4.3.5.Final versions for our example, the same program is also compatible for Spring 4 and Hibernate 3, however you need to make small changes in spring bean configuration file discussed in the last tutorial. Our final project structure looks like below image, we will look into each of the components one by one. Today we will move forward and integrate Spring MVC and Hibernate frameworks in a web application CRUD example. ![]() We learned how to integrate Spring and Hibernate in our last tutorial.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |