springdoc-openapi icon indicating copy to clipboard operation
springdoc-openapi copied to clipboard

feat: add @Order to ApplicationReadyEvent listener (#3151)

Open WeisSebastian opened this issue 1 month ago • 0 comments

Adresses #3151

Add @Order to the ApplicationReadyEvent listener introduced in 2.8.14. This allows consumers of the library to define in what order the listener is executed. Without this annotation, the listener is executed after all other listeners that do have the @Order annotation.

Note: The range of int signalling the Order is from Integer.MIN_VALUE to Integer.MAX_VALUE with a lower value meaning a higher priority, so 0 seems to be a sensible value for me

WeisSebastian avatar Nov 20 '25 09:11 WeisSebastian