你需要在请求头的accept属性设置为application/json;
使用produces:produces="application/json"
或者在swagger config配置文件里面

你需要在请求头的accept属性设置为application/json;
使用produces:produces="application/json"
或者在swagger config配置文件里面
本文标题:swagger默认返回格式为xml类型,不是json
本文链接:https://www.haomeiwen.com/subject/ucuqdhtx.html
网友评论