Documenting Spring REST APIs with Swagger

When working in a context where services communicate to each other over REST, it is quite helpful to properly document those APIs. Especially when services are developed and maintained by different teams it saves time and confusion to provide a single entry point for REST API documentation.

Read More

Elegant Basic Auth with the Spring RestTemplate

Communication via HTTP calls is a very common task for Spring applications in times of service oriented and microservice architectures. To secure services from unwanted access, HTTP Basic Access Authentication is a simple and sufficient (assuming usage of HTTPS) strategy.

Read More

Migrating from Fish Shell to Zsh

I’ve been using Fish Shell for MacOS for about four years before I finally decided to switch to Zsh. Why? I was simply annoyed to Fishs incompatibilities with Bash commands. Remembering another syntax for setting and exporting environment variables and missing support for the && operator were the top of the iceberg.

Read More

Documenting Your Knowledge in Large Projects

Everyone of us knows the pain of bad or missing documentation. It’s a critical element for onboarding, knowledge transfer and knowledge conversation within a software project. If you’re in a five person team, tasks are done asynchronously and there are quite a few repositories, modules, services or however you call it, there is no way without documentation. You must fill the gap of missing knowledge of your colleagues to craft good software.

Read More

I'm up and running!

Welcome to my personal blog. I will post about IT related stuff here. You can expect solutions to common problems, experiences I made with certain technologies or just my loud thoughts about new developments in the IT and software area.

Read More

Spring Data queries using the JPA Criteria API

Spring has nice features for data persistence and gives you simple data access abstractions. Standard queries in Spring Data repositories are easy but when it comes to complex queries, people tend to use the @Query annotation. For some cases, it is complex to write these queries. Therefor I prefer the JPA Criteria API and how to improve complex queries using that.

Read More