Axon Framework - Release 4.11.1

I’m glad to announce that we’ve released Axon Framework version 4.11.1 on Feb 21, 2025.
This release contains:

:beetle: Bug fixes

  • [#3283] fix: Auto-register with Spring Boot fails for interceptors which depends on Axon components #3290
  • Auto-register with Spring Boot fails for interceptors which depends on Axon components #3283

:heart: Contributors

We’d like to thank all the contributors who worked on this release!

:warning: Chance for duplicate interceptor registration

In 4.11.0 of Axon Framework, Spring Boot auto-configuration support for MessageHandlerInterceptors and MessageDispatchInterceptors was introduced.
For those curious how this was achieved, we refer to #3203.

Although the feature on it’s own shouldn’t cause trouble, be aware that if the Axon Framework application you are working on already exposes MessageHandlerInterceptors and MessageDispatchInterceptors beans in the Spring Application Context. When this is the case, in combination with custom code to wire these beans into your infrastructure components, the chance is high they’ll be registered twice due to the aforementioned feature.

As such, we recommend to either:

  1. Remove the custom interceptor auto-configuration, to pass along this task to Axon Framework, or
  2. Exclude the InterceptorAutoConfiguration from your Spring Boot auto-configuration.

By following either road, you should be ascertained that interceptors are not registered twice.

1 Like