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

Use Nginx to host multiple SSL secured websites with one external IP address

In this post, I will describe how to host multiple SSL secured domains on a Linux server with only one external IP address. For a task like this, I usually prefer Nginx as a Reverse Proxy that is used to forward incoming requests to the corresponding backend applications.

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