Home > Back-end >  Spring set up multiple RequestBodyAdvice, its execution order is? For help
Spring set up multiple RequestBodyAdvice, its execution order is? For help

Time:10-28

I'm in the program, according to the annotation to judge whether RequestBodyAdvice

Added two annotations, a landing, a parameter


And in the controller with two comments


And add two RequestBodyAdvice


Visit, the order is

CodePudding user response:

Landing annotation


Parameter annotation

CodePudding user response:

Using the @ Order (1) the annotation
The Lower values have who priority.
  • Related