发请求的时候报个这个错:none of producers: map[application/json:0x2edfd60 application/octet-stream:0x2ede980 application/xml:0x2ee0b80 text/csv:0x2edf740 text/html:0x2ee0400 text/plain:0x2ee0400] registered. try */*后来发现swagger yaml里producer和consumer不一致,一个是- application/json,另一个是*/*,都改为- application/json就正常了。小坑记录下。