If you want to generate Swagger UI documantation for your Spring MVC project, basically you have two options: Enunciate and SpringFox.
I dived into the subject but did not find a single opinion which one is better.
From my perspective Enunciate looks preferable since it is completely external to your project. No need to add a special Bean with configuration, no need to reference additional package with annotations and annotate your controllers with them. You simple use JavaDoc with custom tags and it does the job.
Are there any other considerations to take into account?
Thanks.
After using both, I find the following key differences:
generate-sources
/ generate-resources
for code / doc generation. With springfox I'm stuck with generating after running tests.springfox-swagger-ui
is a really simple way to bolt a swagger UI on top of your existing Spring Boot / MVC application. OTOH, using something like ReDoc along with the generated Swagger Spec is nearly as simple but more flexible.