Spring Boot

Simplify the management of user roles in Spring Boot

Spring Security allows us to use role-based control to restrict access to API resources. However, inserting role names as simple…

3 years ago

Create a custom annotation to configure Spring Boot tests

A custom annotation in Spring Boot tests is an easy and flexible way to provide the required configuration. We can…

3 years ago

Keycloak with Spring Boot #4 – Simple guide for roles and authorities

Delegating user management to Keycloak allows us to better focus on meeting the business needs of an application. However, we…

3 years ago

Keycloak with Spring Boot #2 – Spring Security instead of Keycloak in tests

Configuring our Spring Boot API to use Keycloak as an authentication and authorization server can greatly simplify our codebase. However,…

3 years ago

Keycloak with Spring Boot #1 – Configure Spring Security with Keycloak

Keycloak provides simple integration with Spring applications. As a result, we can easily configure our Spring Boot API security to…

3 years ago

Monitoring Spring Boot projects with Prometheus

Prometheus is an open-source platform used to collect metrics from applications. You can easily apply it to monitor your Spring…

5 years ago

Run a Spring Boot app in a Docker container

For development purposes, you can easily run Spring Boot apps with Docker Compose. (more…)

5 years ago

Monitoring Spring Boot projects with Actuator

Shipping an application to the production requires reliable mechanisms responsible for auditing, health checks, and metrics collection. Fortunately, with Spring…

5 years ago

Add Flyway migrations to your Spring Boot project

Having automated database migrations will significantly ease managing schema development. With Spring Boot support we can effortlessly handle versioned SQL…

5 years ago

Add a PostgreSQL database to your Spring Boot project

An in-memory database may be sufficient during the early phase of project development. However, sooner or later you will need…

5 years ago