赞
踩
1,加入依赖
<!-- Swagger -->
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-jersey2-jaxrs</artifactId>
<version>1.5.0</version>
</dependency>
2,加入插件
<!--增加swagger-plugin-->
<plugin>
<groupId>com.github.kongchen</groupId>
<artifactId>swagger-maven-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<apiSources>
<apiSource>
<springmvc>false</springmvc>
<locations>com.gionee.geip.web</locations>
<schemes>http,https</schemes
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。