<dependency> <groupId>com.spring4all</groupId> <artifactId>swagger-spring-boot-starter</artifactId> <version>1.8.0.RELEASE</version> </dependency>
swagger.enabled=true swagger.title=spring-boot-mybatis module api swagger.description=Starter for swagger 2.x swagger.license=Apache License, Version 2.0 swagger.licenseUrl=https://www.apache.org/licenses/LICENSE-2.0.html swagger.termsOfServiceUrl=https://github.com/pbw123/spring-boot-demo swagger.contact.name=mqXu swagger.contact.url=https://www.jianshu.com/u/2f60beddf923 swagger.contact.email=2635225112@qq.com swagger.base-package=com.springboot.mybatis.controller swagger.base-path=/** swagger.exclude-path=/error, /ops/**
經我屢次嘗試application.properties中不加任何swagger配置也可生成文檔進行正常測試html
另外一種用swagger自動生成文檔的方式請前往git
我的網站github