/images/avatar.jpg

David Vlijmincx | Senior software developer

I am a Senior developer, Public speaker, Java blogger, and Author

Build a REST API with Java

Introduction In this tutorial, you will learn how to set up an REST service using Jakarta EE. You will create a simple web service with two endpoints. The first one will return a JSON array of Strings and the second one will return a JSON object. Maven setup To build our Helidon REST service with Maven, we need to edit the POM file. This file defines essential project information like its name, group ID, and version.

Spring use Virtual threads

Introduction In this post, I quickly wanted to show you how to use virtual thread with Spring. All you have to do is enable it. That is if you are already running Java 21 and using Spring 3.2.0 or later. Enabling Virtual Threads To enable virtual threads all you need to do is to create an applications.properties file in the resource directory if you don't have one already, and add the following line: