Swagger2报错Unable to infer base url. This is common when using dynamic servlet registration or when t
目录1、报错2、报错原因3、解决,加注解4、修改注解5、swagger配置类1、报错报错信息:Unabletoinferbaseurl.ThisiscommonwhenusingdynamicservletregistrationorwhentheAPIisbehindanAPIGateway.Thebaseurlistherootofwherealltheswaggerresourcesares