# only-doc-spring-boot-starter
**Repository Path**: ymts/only-doc-spring-boot-starter
## Basic Information
- **Project Name**: only-doc-spring-boot-starter
- **Description**: 自动spring boot 接口文档
- **Primary Language**: Java
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 9
- **Created**: 2020-05-20
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# only-doc-spring-boot-starter
#### 介绍
自动spring boot 接口文档
这是通过源码扫描生成接口文档的工具
### 使用方式
1、maven 引入依赖
```
com.onlyxiahui.general
only-doc-spring-boot-starter
1.0.0
```
2、需要生成文档的接口需要源码,所以可以2种方式选其一
```
1)源码打包进jar,需要插件配置
org.apache.maven.plugins
maven-resources-plugin
copy-resources
process-resources
copy-resources
${project.build.outputDirectory}
src/main/java
**/*.java
2)引入的jar导入源码
org.springframework
spring-core
5.0.0.RELEASE
sources
test
```
3、打开接口文档
目前默认为http://xxx.xxx.xxx.xxx:xx/doc/index.html