Spring Rest API プロジェクトの 1 つの API ドキュメントを作成するために swagger を使用していますが、作成された swagger.json ファイルに問題があります。スーパー クラスの 1 つが正しく変換されません。
swaggerの実装に使用されるライブラリはspringfoxです。実装の詳細は以下をご覧ください。
構成 EnableWebMvc EnableSwagger2 ComponentScan
public class MvcConfig extends WebMvcConfigurerAdapter {
}
これは問題を引き起こしているクラスです
public class ListResultModel MODEL extends BaseModel {
}
Json が作成されました
"schema":{"$ref":"#/definitions/RedirectAttributes"}}],"responses":{"200":{"description":"OK","schema":{"type":"string"}},"201":{"description":"Created"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/admin/migration/vat":{"get":{"tags":["migration-controller"],"summary":"vatMigration","operationId":"vatMigrationUsingGET","consumes":["application/json"],"produces":["/"],"parameters":[{"name":"retailerId","in":"query","description":"retailerId","required":true,"type":"string"}
{"$ref":"#/definitions/**ListResultModel«Item»"**}},"401":{"description":""},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/api/items/withoutPictures/{departmentId}/{vendorId}/{status}":{"200":{"description":"OK","schema":{"$ref":"#/definitions/**ListResultModel«Item»"}**},"401":{"description":""},"403":{"description":"Forbidden"},"404":{"description":"Not }
{"$ref":"#/definitions/ListResultModel«Lead»"}},"201":{"description":"Created"},"401":{"description":""},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}}
私は長い間これを解決しようとしていますが、それを行う方法の手がかりがありません。誰でも私を助けてください!
前もって感謝します。ヴィベク