Spring Boot Tip: HTTP Request Logging with CommonsRequestLoggingFilter

Martin Hock recently published this tip on how to enable HTTP "request logging using CommonsRequestLoggingFilter to capture detailed information about incoming request": 🚀 Advanced Spring Tip 🚀HTTP Request Logging with CommonsRequestLoggingFilterEnable request logging using CommonsRequestLoggingFilter to capture detailed information about incoming requests. 🔥https://t.co/Sb1QyJ4GY6#SpringTip #Java— Martin Hock (@mnhocktweets) December 14, 2023 Read more

Spring Boot Tip: Set BP_JVM_JLINK_ENABLED to true to create more efficient runtime images.

Martin Hock recently published this tiny but useful Spring Boot tip on how to minimise the Java runtime dependencies included in your Spring Boot application builds: 🚀 Spring Boot Tip 🚀🔥 Enhance your @springboot container image build with #Jlink! 🔥Set BP_JVM_JLINK_ENABLED to true in the Spring Boot Maven Plugin, and create more efficient and customized and smaller runtime images. https://t.co/hMDENzME2f#SpringBoot #Java pic.twitter.com/ZLK7iWfSP9— Martin Hock (@mnhocktweets) November 14, 2023 For reference, here's the relevant configuration snippet for your project's pom.xml and more detailed ... Read more

Hidden gems and traps that you probably didn’t think of using Event Sourcing by David Gomez @ Spring I/O 2023

Read more

Multitenant Mystery Only Rockers in the Building by Thomas Vitale @ Spring I/O 2023

Read more

REST next level: Crafting domain-driven web APIs by Julien Topçu @ Spring I/O 2023

Read more

Ruby on Rails: The Documentary

Ruby on Rails has one of the most faithful communities online, it also has one of the most controversial, rabble-rousing creators out there, Danish programmer, David Heinemeier Hansson. Widely known as DHH, David tells us how Rails went from a crazy idea to one of the most talked-about full-stack frameworks over the course of 20 years. Given that Ruby on Rails has been hugely influential and seminal in the software development industry for the last two decades, not least by inspiring ... Read more

ArchUnit Spring Integration

ArchUnit is a tremendously useful library for enforcing Java application architecture via unit testing. Fellow software developer and consultant Roland Weisleder recently published a new library called ArchUnit Spring Integration that helps with - well - better integrating ArchUnit with Spring applications. By introducing a DSL, ArchUnit Spring Integration allows you to easily enforce constraints regarding common Spring stereotypes such as @RestController. For example, using ArchUnit Spring Integration you can make sure that methods annotated with @GetMapping (or other HTTP verb mappings, for ... Read more

Spring Boot & Flyway – How to Clear a Test Database Between Integration Tests

A few months ago, consultant and prolific open source contributor Maciej Walkowiak, of Spring Cloud AWS and just fame, wrote about clearing test databases between integration tests with Spring Boot and Flyway. The recipe / pattern for restoring a test database to its previous state (i.e. the state before a specific integration test has been executed) outlined in that article should come in handy to anyone working with Spring Boot. Moreover, the basic concept is generic enough to be applied to another ... Read more

WireMock Spring Boot

WireMock is an API mocking tool that enables developers to simulate REST APIs during testing. In a system-under-test fashion, it allows us to remove external, potentially flaky, dependencies from our test environment to make our unit tests more focussed and more reliable. WireMock Spring Boot is a new library by consultant and prolific open source contributor Maciej Walkowiak that "drastically simplifies WireMock configuration in a Spring Boot and JUnit 5 application". Featuring a fully declarative WireMock setup and automatic Spring environment setup, ... Read more

Modern Web App Design Patterns: Patterns.dev

After last week's post on The Modern JavaScript Tutorial, a comprehensive guide to modern JavaScript, as something of a follow-up, today I'd like to introduce you to Patterns.dev (previously known as "Modern Web App Design Patterns"), an ebook on "design patterns and component patterns for building powerful web apps with vanilla JavaScript and React". The authors of Patterns.dev provide design patterns and tips on how to improve the architecture of your web apps. Patterns.dev follows a descriptive rather than prescriptive approach in ... Read more
« Previous PageNext Page »