How to Use and Test @Scheduled Annotation in Spring

In this article we will learn how to use and test Scheduled annotation in Spring. Let’s start! Introduction Scheduled annotation in Spring is quite helpful when you need to start a job or task every certain time. This annotation can help you saving some time writing a Runnable task and using ScheduledExecutorService to periodically run…

How to Use and Test @ConditionalOnProperty in Spring Boot

In this article we will learn how to test @ConditionalOnProperty annotation in Spring Boot. This annotation is specially useful for enabling or disabling components based on a feature flag. Let’s start! Introduction The @ConditionalOnProperty annotation in Spring allows us to instantiate a component based a given condition. For example we could instantiate an implementation or…

Understanding Kotlin Flows

In this article we will explain what a Kotlin Flow is and how to use it, what benefits does it bring to us and some use cases where their use is sensible. You will be able to understand when to use a Kotlin Flow, a Kotlin Sequence or just plain collections. Let’s start! Introduction The…

Test GET Request in Spring Boot Kotlin Application

In this article we will show you how to perform a GET request in Spring using RestTemplate. We will take you through a simple integration test example to be able to test a GET endpoint in a Spring Boot application. If you are interested in an example using Java, you can find the equivalent article…

How to Add SSH Key to Github

In this article we will show you how to add SSH key to Github to be able to push changes to your remote repositories in Github. Let’s see how! Introduction In order to be able to push our local changes to Github, we will need an SSH key set to provide Github a way to…

Loading…

Something went wrong. Please refresh the page and/or try again.

Subscribe