Intro to Spring Cloud Config Server

1. Overview In this tutorial, we will review the basics of Spring Cloud Config Server. We will setup a Config Server and then build a client application that consumes the configuration on startup and then refreshes the configuration without restarting. The application we are building is the same “Hello World” application discussed in the Centralized Configuration Getting […]

Spring Batch CSV Processing

Overview Topics we will be discussing include the essential concepts of batch processing with Spring Batch and how to import the data from a CSV into a database. 0 – Spring Batch CSV Processing Example Application We are building an application that demonstrates the basics of Spring Batch for processing CSV files. Our demo application […]

Validation in Thymeleaf + Spring

Overview Important topics we will be discussing are dealing with null values, empty strings, and validation of input so we do not enter invalid data into our database. In dealing with null values, we touch on use of java.util.Optional which was introduced in Java 1.8. 0 – Spring Boot + Thymeleaf Example Form Validation Application […]

Building Spring Boot RESTful Service + Spring Boot Actuator

Overview What is REST? REST(REpresentational State Transfer) is the architectural style the web is built on and has become a standard software design pattern used for web applications. The term Representational State Transfer was first used by Roy Fielding, the originator of REST and one of the principal authors of HTTP specification, in his doctoral […]

PagingAndSortingRepository – How to Use With Thymeleaf

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 […]

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. […]