GithubHelp home page GithubHelp logo

api-doc's Introduction

api-doc

接口文档生成辅助工具

注释方式: 接口描述 @description 实体类 1.// 单行 2. /* / 多行 3. /* */ 多行

使用方式:

1.下载代码打包生成jar

2.在本地项目引入jar

3.增加包名扫描 com.dudg.apidoc springmvc spring-dispatcher.xml <context:component-scan base-package="com.dudg.apidoc" /> springboot 启动类 @ComponentScan(basepackage="com.dudg.apidoc")

4.在需要生成的类/接口 加上注解 @Api(name = "功能模块描述")

5.启动项目,根据项目设置的端口地址(此处暂以8080端口)

包名:需要生成文档的类/接口所属的包名

http://localhost:8080/index.html?packagename=com.demo

注:如果项目中需要生成文档的接口引用了其它项目实体,需要在被引用的项目打源码jar

maven 方式在pom中加以下插件 org.apache.maven.plugins maven-source-plugin 3.0.0 compile jar-no-fork

api-doc's People

Contributors

dudg1021 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.