Spring Boot

Paging with Spring Boot

As a user of a web application we’re expecting pages to load quickly and only show the information that’s relevant to us.

Read more

Configuring a Spring Boot Module with @ConfigurationProperties

Every application above play size requires some parameters at startup. These parameters may, for instance, define which database to connect to, which locale to support or which logging level to apply.

Read more

Conditional Beans with Spring Boot

When building a Spring Boot app, we sometimes want to only load beans or modules into the application context if some condition is met.

Read more

Testing JPA Queries with Spring Boot and @DataJpaTest

Aside from unit tests, integration tests play a vital role in producing quality software. A special kind of integration test deals with the integration between our code and the database.

Read more

Testing MVC Web Controllers with Spring Boot and @WebMvcTest

In this second part of the series on testing with Spring Boot, we’re going to look at web controllers. First, we’re going to explore what a web controller actually does so that we can build tests that cover all of its responsibilities.

Read more

Unit Testing with Spring Boot

Writing good unit tests can be considered an art that is hard to master. But the good news is that the mechanics supporting it are easy to learn.

Read more