Latest Posts

Simple Spring Boot CRUD application with Thymeleaf, JPA and Bootstrap

In this post, I will describe a full working example of a simple Spring Boot based CRUD application. The example code uses Thymeleaf Template Engine, Bootstrap 3 and Spring JPA in conjunction with HSQL DB.

Continue Reading

Forward referrer to Spring Boot Application when using Nginx as Reverse Proxy

In this post, I will describe how to forward the HTTP referrer to a Spring Boot web application behind a Reverse Proxy (Nginx). The example application will log the referrer and other important information like remote IP address, preferred language and client browser type and version to the file system.

Continue Reading

How to read a file from the resources folder in a Spring Boot application

This is a quick post that explains how to read a file from the resources folder (Classpath) within a Spring Boot command line application.

Continue Reading

Spring AOP in conjunction with custom annotations

In one of my recent projects, I had the task to clean up existing Java classes regarding a typical cross-cutting concern problem. Access to certain methods within a web application should be logged, basically which user invoked which method using what kind of parameters. This is a situation when Spring AOP with custom annotations can provide a clean solution. In the following post, I will walk you through the entire process using a simplified solution.

Continue Reading

Spring Boot basic secured start project for web development

In this post, I will walk you through the process of creating a minimal Spring Boot web application. I use a starter project like this quite often for checking out new features or creating a proof of concept (POC). The web application will have two separate areas, a publicly accessible site and a user/password secured admin site. This example shows how to create a custom form based login screen using bootstrap 3.

Continue Reading