Latest Posts

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

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