shenyu
shenyu copied to clipboard
[Improve] [ISSUE #5628] Migrate Admin swagger from springfox to springdoc
Fixes #5628
This PR upgrades the Swagger integration from Swagger 2 to Swagger 3 in the shenyu-examples-http-swagger2 module. The key changes include:
-
Dependency Upgrades:
- Replaced
springfox-swagger-uiandspringfox-swagger2dependencies withspringdoc-openapi-starter-webmvc-ui. - Upgraded
commons-lang3.versionto3.12.0to avoid issues with theNumberUtils.isCreatable(String)method not being found.
- Replaced
-
Migration Adjustments:
- All instances of Swagger 2 have been updated to Swagger 3.
- Annotations have been modified as per the migration guidelines provided in the Springdoc documentation.
-
Verification:
- Ensured that the API documentation functionality remains correct and operational after the upgrade.
Make sure that:
- [x] You have read the contribution guidelines.
- [x] You submit test cases (unit or integration tests) that back your changes.
- [x] Your local test passed
./mvnw clean install -Dmaven.javadoc.skip=true.