- Notifications
You must be signed in to change notification settings - Fork2
This tutorial project explains spring-jdbc plus spring-webmvc concepts. First read my spring-jdbc-tutorial git project to understand data access layer and then read this codes to complete A-Z CRUD process from web server UI to data access. Here I used some JSP tag-libs for render Java ModelAndView objects in JSP pages and getting user inputs and…
License
sdxcod/spring-jdbc-mvc-tutorial
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Spring Core features explained inspring-core-tutorial and Spring JDBC features mentioned inspring-jdbc-tutorial codes in my repository
This tutorial code used to explain Spring JDBC concepts:
- addspring-context andspring-jdbc andmysql-connector-java plusspring-webmvc and dependencies
- addjavax.servlet.jsp-api,javax.servlet-api andjstl dependencies for implementing Java server-side UI.
- add DAO model, repository interface and repo implementations
- add datasource bean definition with spring-resource loading configurations
- add bean for Spring wrappers over Java JDBC drivers same asJdbcTemplate,NamedParameterJdbcTemplate,SimpleJdbcInsert.
- add service controller(biz-layer) for getting UI request from Spring Dispatcher Servlet and wire with DAO layer to process web requests.
- support using GET/POST HTTP requests to access CRUD services.
- usingweb.xml to config Spring web application.
- 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.
- add CustomSqlErrorCode translator with SpringSQLErrorCodeSQLExceptionTranslator parent class.
TIP: Database DDL and DML SQL queries is added todb_files folder
About
This tutorial project explains spring-jdbc plus spring-webmvc concepts. First read my spring-jdbc-tutorial git project to understand data access layer and then read this codes to complete A-Z CRUD process from web server UI to data access. Here I used some JSP tag-libs for render Java ModelAndView objects in JSP pages and getting user inputs and…
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.