webapi 配置swagger出现问题:not supported by swagger 2.0

xiaoxiao2021-02-28  134

一个controller中只能有一个HttpGet请求,多了就会报错。建议减少重载方法,将其他Get方法分开

如果在swagger.config中加上c.ResolveConflictingActions(apiDescriptions => apiDescriptions.First());则会只显示第一个get方法

另:可以不安装swagger ui for .net,安了有可能会报错

转载请注明原文地址: https://www.6miu.com/read-23539.html

最新回复(0)