凡心所向,素履所往,生如逆旅,一苇以航。——《尘曲》

先上issue:

[BUG] Can not startup shenyu-examples-http-swagger2 · Issue #5628 · apache/shenyu · GitHub

pr:

[Improve] [ISSUE #5628] Migrate Admin swagger from springfox to springdoc by VampireAchao · Pull Request #5630 · apache/shenyu · GitHub

这里主要是参考我之前写的

spring3 springfox报错Type javax.servlet.http.HttpServletRequest not present

以及按照文档里替换注解:

https://springdoc.org/#google_vignette

比较棘手的是

https://github.com/apache/shenyu/pull/5630/files#diff-b5460fdf3947d08e586d21f2586adaf7bc970a8d07174e06c88018f4aedabf85

这里修改buildDocParameters,因为升级swagger3json格式不一样了

还有就是

[Improve] [ISSUE #5628] Migrate Admin swagger from springfox to springdoc by VampireAchao · Pull Request #5630 · apache/shenyu · GitHub

这里修改配置为OpenAPI

其他的都还好