Search code examples
springspring-bootmustacheswagger-codegen

Is there any mustache template for adding logging or exception handling when generating spring boot api using swagger-codegen-cli-2.3.1?


I have searched for this template but couldn't find one.

Is there any editor to generate mustache template for spring boot.

Please let me know how to modify existing mustache template to suit requirements.


Solution

  • If the author of the template didn't write any logging features within the spring boot template you will have to modify the template yourself. Instructions on using the generator with local template files can be found here

    templates

    You will have to download the spring template folder and the according java class if you don't want to clone the complete codegen project.