Today I found out, there is a super short way to return a ResponseEntity in Spring boot. Usually you want to fetch data from a repository using some kind of interface. Let’s say you use the: It provides a method to find an entity by its ID: As you can see it returns an optional… Continue reading The Shortest way to return a Response Entity in Spring Boot
In this post I will show you how to run Keycloak inside a Docker container. As you might know Keycloak Is a great Open Source tool for identity and access management. You can use it to secure your web application. One main feature ist to secure your application with a login and registration form or… Continue reading How to set up Keycloak with Docker
The latest version of Firefox (96.0 and 95.02) has a bug when you enable DoH(DNS over HTTPS). It seems that it gets stuck at in the ‘SocketThread’. In this post, i will show you how to fix your Firefox connection problems after enabling DoH.
The Singletone design pattern is one of many famous design pattern used in software developent.
Sometimes you need to ensure that a class in your java project only has one single instance in your whole program or application. The singleton pattern is suitable for this purpose. In this post, i will show you how to implement it and describe which value it offers you in your program.
The SOLID principles are design principles that are used in software development. The term was coined by Robert C. Martin and describes five design principles that specify how functions and data structures are arranged in classes and how these classes should be interconnected. The goal of SOLID is the production of software, which tolerates modifications,… Continue reading The Solid Design Principles
For my first blogpost I decided to write about a new small feature in Java 17. The new NullPointerException.Actually this is not new. But the content is much more informative than usual.