guide∼6 min
API Documentation with Springfox 3Recently, the popular Springfox project released the long-awaited v3 of their library with support for OpenAPI 3 and Spring 5 (only annotation-based API is supported). It also comes with a...
guide∼4 min
Using Git LFS in CIGit LFS is a great way to version large binary files alongside the source code in Git. It replaces the actual files with text pointers in the Git repository and stores them on a remote server that...
note∼1 min
Parsing varargs as array with JacksonConsider the following Java class where the setter for the author property accepts the values as varargs. java 1class Book { 2 private String[] author; 3 4 public String[] getAuthor() { 5 ...
note∼1 min
Skipping the GitLab CIGitLab CI is a pretty nifty tool to run your CI pipelines using Docker. At times, you may want to skip it, though, e.g., when you update a README or LICENSE. There are multiple ways to do that...
guide∼17 min
Error handling for a Spring-based REST APISpring Boot provides pretty nifty defaults to handle exceptions and formulate a helpful response in case anything goes wrong. Still, for any number of reasons, an exception can be thrown at runtime...
guide∼9 min
API Documentation with springdoc-openapiOpenAPI Initiative is a widely adopted industry standard to describe and document APIs, with Swagger being one of its most well-known implementations. For years, Springfox, using Swagger, has...
note∼1 min
Customize the PowerShell promptI've been using the PowerShell Core on Windows Terminal for a while. I wanted to customize the prompt to display > on a newline and the current Git branch along with the working directory. You can...
guide∼16 min
Securing Spring Boot APIs with JWT AuthenticationJSON Web Tokens (JWTs) are stateless, compact, and self-contained standard to transmit the information as a JSON object. This object is usually encoded and encrypted to ensure the authenticity of the...
guide∼6 min
Querying Postgres with Spring Data and Micronaut DataRepository API of Spring Data is one of the most elegant and compelling features of Spring framework. It generates runtime implementations of the repositories. But what if those implementations can...
guide∼1 min
Logging on Node.js with winstonwinston is very popular logger for Node.js, providing simple API to store and format the logs. It provides support for custom logging levels, streaming logs and custom transports to save the logs...