引入依赖

    1. <!-- swagger2 配置 -->
    2. <dependency>
    3. <groupId>io.springfox</groupId>
    4. <artifactId>springfox-swagger2</artifactId>
    5. <version>2.4.0</version>
    6. </dependency>
    7. <dependency>
    8. <groupId>io.springfox</groupId>
    9. <artifactId>springfox-swagger-ui</artifactId>
    10. <version>2.4.0</version>
    11. </dependency>
    12. <dependency>
    13. <groupId>com.github.xiaoymin</groupId>
    14. <artifactId>swagger-bootstrap-ui</artifactId>
    15. <version>1.6</version>
    16. </dependency>