Giter VIP home page Giter VIP logo

seefa / spring-mvc-hibernate-dbcp2-tutorial Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 28 KB

This tutorial project explains spring-jpa concepts and using Hibernate APIs for persistence layer with dbcp2 for connection pool management. Spring MVC used for call CRUD operations

License: Apache License 2.0

Java 100.00%
persistence-layer hibernate spring spring-jpa dbcp spring-mvc hibernate5 hibernate-orm hibernate-validator entity

spring-mvc-hibernate-dbcp2-tutorial's Introduction

spring-mvc-hibernate-dbcp2-tutorial

Spring MVC features explained in spring-mvc-jdbc-tutorial codes in my repository

This tutorial code used to explain Spring with Hibernate for persistence layer and Web MVC to call CRUD operations and using dbcp2 API for connection pool management by following tasks:

  • add spring-context, mysql-connector-java, spring-orm spring-webmvc and dependencies
  • add javax.servlet.jsp-api, javax.servlet-api and jstl dependencies for implementing Java server-side UI(.jsp files).
  • add spring-data-jpa, hibernate-core, hibernate-entitymanager and hibernate-validator dependencies for implementing Persistence ORM layer.
  • add commons-dbcp2 dependency for supporting Database Connection Pool feature.
  • using Entity bean to add new DAO object and using @Entity and @Table annotations plus @GeneratedValue for generating table key value automatically.
  • support using GET/POST HTTP requests to access CRUD services.
  • using tag libs in JSP view pages to iterate/post and formatting Java objects to HTML contents and pass HTML input forms to Java Object.
  • using @InitBinder to convert String date input to java.util.Date format.

TIP: Database DDL and DML SQL queries is added to db_files folder

spring-mvc-hibernate-dbcp2-tutorial's People

Contributors

seefa avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.