Spring Ahead of Time

Spring AOT processing is part of the process to create a native binary from a Spring (Boot) application. This extension will help in adding a lot of hints which are needed for Axon Framework. Please note this extension can only be used with Spring Boot 3, as such it requires at least Java 17.

Besides the extension, it might be necessary to make more changes to successfully compile and run an application as a native image. For example, when a message isn’t used in a handler. This is quite common when the application is split, and the application sending certain messages is not the same as the application handling the messages. In those cases these messages need to be added to the ImportRuntimeHints annotation. Otherwise, these messages can’t be deserialized, leading to errors at runtime.

If something is not working or only works with additional hints, and it’s Axon-specific, please let us know either at GitHub or Discuss.