I want to documenting a REST API with Swagger and Spring MVC,
And I find out that Spring 3 only can use Swagger V1
<artifactId>swagger-springmvc</artifactId>
<version>1.0.2</version>
when I add @ApiParam in front of @RequestBody , do not display completely in Data Type.
Finally I choose Swagger V2 in Spring 4
I add some dependency and change, as below .
<artifactId>springfox-swagger2</artifactId>
<version>2.2.2</version>
<artifactId>spring-web</artifactId>
<artifactId>4.1.6.RELEASE</artifactId>
Now can display any API info when I needs,
But still no idea why Spring 3 only can use SwaggerV1
and the difference between the Spring 3 & 4 when use Swagger V2
why Spring 3 not need spring-web ,but Spring 4 need
If need any information , please tell me
I will be grateful for any help you can provide.