Spring mvc Adding DAO Code

Now we gonna see how to add DAO code to our existing spring mvc application. web.xml OffersController.java offers-servlet.xml home.jsp Upto now we have seen the working of spring mvc application.But, what if we have a DAO(data access object) code to be added to our web application. Which the DAO will do some CRUD operations. Lets have a look of adding the DAO code to Our spring mvc application. we have the Offer pojo. Offer.java we have the OffersDAO, in this class we have configured the DataSource and JdbcTemplate. To know how to configure Datasource and JdbcTemplate http://sourceforopensource.com/spring-querying-using-jdbc-template/. OffersDAO.java dao-context.xml Conclusion: In

Read more