My Spring Controller defines spec retrieval @RequestMapping with produces = "application/yaml".
This works well with Swagger-UI 2.x, while Swagger UI 3.0.4 fails with HTTP 406.
Adding "applicatiopn/json" to "produces" makes 3.0 work even if only yaml is returned, but it breaks Swagger-ui 2.x.