Both `Api` and `RequestMapping` can set consumes and produces but their 
processors' behavior is different. `ApiProcessor` only set consumes/produces 
when there is no config in Swagger, but 
`RequestMappingClassAnnotationProcessor` will set consumes/produces no matter 
there is config in Swagger.
In other words, `ApiProcessor` cannot over write the config but 
`RequestMappingClassAnnotationProcessor` can. So `RequestMapping` takes higher 
priority.

[ Full content available at: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/882 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to