/spring-jdbc-simple

https://htr3n.github.io/2018/11/test-driven-spring-jdbc/

Primary LanguageJavaMIT LicenseMIT

Build Status License: MIT

Spring Boot + Test-Driven CRUD JDBC

This simple development project is a showcase contains a domain model Customer along with a CustomerDao class that accesses the database via JDBC and maps each row to an instance of Customer.

The main goal is to illustrate how Spring JDBC (with JdbcTemplate and Spring Boot auto-configuration) works with minimal setting and dependencies.

Most of JDBC functionality are in CustomerDao CRUD methods. A test case CustomerDaoTest shows the usage of these CRUD methods.

Quick Start

Simple execute mvn clean test at the command line or with your favorite IDE.