is openapi available in spring java?

Generated code templates are stored as resources in the .mustache format. But you can easily overwrite it by creating a modified file with the same name and adding a link to the folder if you have Maven or Gradle.

In your case, copy the api.mustache and methodBody.mustache files to your computer or project resources from, and change them by replacing Response<> with a URI.

Add the item <templateResourcePath>folderInYourResources</templateResourcePath> or <templateDirectory>pathToDirectory</templateDirectory> into your Maven <configuration> and everything should work

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top