Categories
Spring

Getting started with Docker Compose integration in Spring Boot 3.1

Spring Boot 3.1 has Docker Compose support. This feature enhances the development experience and removes the overhead of managing containers and ports. With the 3.1 release, Spring Boot automatically detects the random port numbers assigned by the Docker host and sets them in the application at runtime without any configuration or code changes. This article […]

Categories
AWS DevOps

Retrieve secrets from AWS Secrets Manager by version

AWS provides Secrets Manager that allows storing and retrieving secrets, credentials, and versioning. In this article, we discuss how to retrieve secrets from AWS Secrets Manager by version using AWS CLI. AWS Secrets Manager As mentioned earlier, AWS Secrets Manager is a powerful tool to store secrets and credentials. One of its strong points is […]

Categories
Spring

Change Spring Boot log level at runtime with actuator

Spring Boot actuator allows changing an application log at runtime at a granular level. In this article, we cover how to change a Spring Boot application log level at runtime with the actuator endpoint. The prerequisite for changing the log level at runtime is to expose the logger actuator. We do that by adding the […]

Categories
Kubernetes Spring

Remote debug a Spring Boot application in Kubernetes

Sometimes, debugging an application locally is insufficient to pinpoint the underlying issue. Additionally, there are times when the infrastructure limitations do not allow one to debug an application. In such scenarios, remote debugging is a reasonable approach. However, that requires some preparations. In this article, we cover how to remote debug a Spring Boot application […]

Categories
Spring

Disable Springdoc OpenAPI Swagger in production

Previously, we covered how to disable Swagger-ui in production using the SpringFox Swagger2 library. Unfortunately, that library is unmaintained and it is no longer possible to use it with the latest versions of Spring Boot. The best drop-in replacement option is the Springdoc-openapi library which we covered how to use in our Spring Boot Swagger […]

Categories
PostgreSQL Spring

PostgreSQL integration tests using Testcontainers

Running tests against a real database provides more confidence in comparison to an in-memory database such as H2. For that, the Testcontainers library is a wise choice as it provides an out-of-the-box solution to write and run integration tests against an actual database of your choice running in a Docker container. In this tutorial, we […]

Exit mobile version