← 返回卡片

原书出处

Automating API Delivery APIOps with OpenAPI

06 通过代码与定义生成促进遵约 6.2 Generating code from OpenAPI

核验版本的摘录快照 · 导入于 2026-11-24T09:39:53.481Z

You can regenerate the API service code from the updated product-catalog-v1-1.oas.yaml file. But you don’t want to overwrite the custom changes you added to the ProductsApiController.java file. To prevent this, add **ProductsApiController.java to the product-catalog-service/.openapi-generator-ignore file. Then, navigate to the chapter6 folder, and run the command shown in the next listing to generate the code using the product-catalog-v1-1.oas.yaml file.

此预览只包含定位所需的摘录和上下文。

原书定位详情

来源:a19c7933-4eda-4176-aebd-30fe7e1ad292

正文位置:extracted/Automating API Delivery APIOps with OpenAPI/_epub-src/OEBPS/Text/chapter-6.xhtml#p75

EPUB SHA-256:73b94e6cdce95a5b45154bc48c68151659ddf69ec246d4fad79dc89db000857e