Aggregate Millions of Database Rows in a Spring Controller

The Spring Framework makes it really easy to quickly setup a RESTful API to a relational database using JPA and Spring Web, as long as the API matches the structure of the database. In many APIs however, the REST-endpoint doesn’t...

How to Set Up a Secure REST API with Spring

As you all know, Spring Boot is a toolkit that makes it super easy to quickly develop powerful web services. It is very modular and made to play well with other frameworks and tools. In this tutorial I am going...

Query Databases Using Streams (Videos)

Java 8 introduced a completely new way of working with data in Java with the Stream interface. In these quick-start videos I explain how easy it is to write database applications with Streams by using Speedment to generate the necessary...

Quick Tip To Prevent Your Caches From Exploding

There are many scenarios when you can benefit from caching commonly used objects in your application, especially in web and micro-service oriented environments. The most simple type of caching you can do in Java is probably to introduce a private...

Creating a REST API with Speedment and Spring

With the 4th release of Spring Boot, developing enterprise applications for the web have become so much easier. Something that still requires a lot of time on the developer’s behalf is modelling an existing database in for an example Hibernate...