You are viewing a plain text version of this content. The canonical link for it is here.
Posted to devnull@infra.apache.org by "yhs0092 (GitHub)" <gi...@apache.org> on 2018/08/23 01:14:49 UTC
[GitHub] [incubator-servicecomb-java-chassis] yhs0092 commented on
pull request #882: [SCB-206] Support setting produces and consumes by @Api
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 devnull@infra.apache.org