swagger 报错: TypeError: Failed to execute 'fetch' on 'Window': Request with GET/HEAD method cannot h

swagger 报错:

      TypeError: Failed to execute ‘fetch‘ on ‘Window‘: Request with GET/HEAD method cannot have body.

 

      有@ResponseBody才会在接口中获取swagger列表

 

      是由于方法中申明的是get方法却用了@requestBody 

 

      故将get 请求改为post 请求即可

swagger 报错: TypeError: Failed to execute 'fetch' on 'Window': Request with GET/HEAD method cannot h

上一篇:java 使用mongoDB


下一篇:UAP c#使用参照总结