Skip to content

jdbctemplatemapper/jdbctemplate-crud-spring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

jdbctemplate-crud-spring

This is the code respository for the examples in the medium.com article titled Simple CRUD for Spring JdbcTemplate.

Github project for the JdbcTemplateMapper library used in the examples.

The main code is in class TutorialTest.java. The example code are tests that go against a MySQL database. On your MySQL instance you will need to create a database named 'tutorial'. Make appropriate changes to application.properties file so you can connect to your database. The tables needed for the tests are created automatically when the tests are run so no need to manually create them. To see how JdbcTemplateMapper is configured take a look at file JdbcTemplateMapperConfig.java

You can run the example code from the command line with:

mvn clean package

You should see all the SQL being issued on the console.