For this tutorial, I will demonstrate how to display a list of a business’ clients in Thymeleaf with pagination. View and Download the code from Github 1 – Project Structure We have a normal Maven project structure. 2 – Project Dependencies Besides the normal Spring dependencies, we add Thymeleaf and hsqldb because we are using… Continue reading PagingAndSortingRepository – How to Use With Thymeleaf
Category: Spring
Using MySQL JDBC Driver With Spring Boot
In this article, I will show you how to connect a MySQL database with your Spring Boot application. All the code is available on Github Tools used in this article include: Spring Boot 1.5.6 Release MySQL 5.7.X Maven Java 8 Spring Data JPA 1 – Project Structure The project structure is a typical Maven structure.… Continue reading Using MySQL JDBC Driver With Spring Boot
Batch Updates with JdbcTemplate
There may come time when you are using JdbcTemplate and want to use a PreparedStatement for a batch update. In the example below, we will explore how to insert thousands of records into a MySQL database using batchUpdate. First, we must configure the datasource to use in our application.properties. Now in order to use this… Continue reading Batch Updates with JdbcTemplate