A 'simple' way to implement Swagger in a Spring MVC application

前端 未结 3 589
自闭症患者
自闭症患者 2020-11-29 15:38

I have a ReSTFul API written in simple Spring (no Spring Boot, no fancy stuff!). I need to implement Swagger into this. So far, EVERY page on the internet has only driven me

3条回答
  •  情深已故
    2020-11-29 16:15

    You can also consider using swagger-maven-plugin to generate swagger.json and copy it to yours static swagger-ui.

    Please check simple sample of working plugin with Spring MVC annotations on this repo:

    https://github.com/khipis/swagger-maven-example

    or for JAX-RS

    https://github.com/kongchen/swagger-maven-example

提交回复
热议问题