1、我在 springboot项目中的 application.properties 配置文件中 

server.servlet.context-path=/community 配置改成
erver.servlet.context-path=/community/api,导致如下情情况

swagger API接口页面,访问的URL 中加入了 /v2/api-docs 字段

这种情况,在本地却没有出现。然后联想到本地和服务器的差别,服务器上面的服务用 Nginx进行了跳转。然后修改如下就OK了

 

swagger API接口页面,访问的URL 中加入了 /v2/api-docs 字段

相关文章:

  • 2022-01-20
  • 2022-03-04
  • 2022-12-23
  • 2021-12-10
  • 2021-06-28
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
猜你喜欢
  • 2021-09-23
  • 2021-06-21
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案