用Swagger出现这个问题

用Swagger出现Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway解决方案

 

 

解决方案如图:在Springboot的启动类上加@EnableSwagger2注解

用Swagger出现Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway解决方案

 

 成功:

用Swagger出现Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway解决方案

 

相关文章:

  • 2021-12-20
  • 2021-12-03
  • 2021-08-09
  • 2021-09-19
  • 2021-06-19
  • 2022-03-01
  • 2022-12-23
猜你喜欢
  • 2021-06-29
  • 2022-12-23
  • 2021-05-22
  • 2021-09-09
  • 2021-05-28
  • 2022-12-23
  • 2021-06-05
相关资源
相似解决方案