Closed ruansheng8 closed 6 months ago
Hello @ruansheng8 - that processor is specifically for the @RequestParam
annotation. Just create your own AnnotatedParameterProcessor
implementation and instantiate it as bean - it will be autowired.
Hello @ruansheng8 - that processor is specifically for the
@RequestParam
annotation. Just create your ownAnnotatedParameterProcessor
implementation and instantiate it as bean - it will be autowired.
You're right, thanks !
Description
If the logic in the
processArgument
method does not appear in a specificannotation class
, I will be able to directly reuse the original logic to encapsulate custom annotations.Similar Code
https://github.com/spring-cloud/spring-cloud-openfeign/blob/bd560f1fffee2beee6f1496f4522dceb340108fb/spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/annotation/RequestHeaderParameterProcessor.java#L61