Converting HTML to RichTextString for Apache POI

1. Overview In this tutorial, we will be building an application that takes HTML as an input and creates a Microsoft Excel Workbook with a RichText representation of the HTML that was provided. To generate the Microsoft Excel Workbook, we will be using Apache POI. To analyze the HTML, we will be using Jericho. The… Continue reading Converting HTML to RichTextString for Apache POI

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… Continue reading Intro to Spring Cloud Config Server

Converting XML to JSON + Raw Use in MongoDB + Spring Batch

Overview Why convert XML to JSON for raw use in MongoDB? Since MongoDB uses JSON documents in order to store records, just as tables and rows store records in a relational database, we naturally need to convert our XML to JSON. Some applications may need to store raw (unmodified) JSON because there is uncertainty in… Continue reading Converting XML to JSON + Raw Use in MongoDB + Spring Batch

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… Continue reading Spring Batch CSV Processing

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… Continue reading Building Spring Boot RESTful Service + Spring Boot Actuator

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… Continue reading PagingAndSortingRepository – How to Use With Thymeleaf