aleneZeng opened a new pull request #1336: URL: https://github.com/apache/incubator-linkis/pull/1336
### What is the purpose of the change 集成knife4j以提供apidoc,除了eureka和gateway服务之外,其他的服务都可通过http://ip:port/api/rest_j/v1/doc.html访问apidoc add knife4j support to linkis to supply api document for all micro services except eureka and gateway ### Brief change log 1,在模块linkis-module增加knife4j的配置类knife4jConfig 2. 在模块linkis-module增加必要的maven依赖 3. 选择了相对稳定的knife4j 2.0.9版本,此版本还是依赖于swagger2实现 1,add knife4jConfig to module: linkis-module 2,add necessary maven dpendencies for knife4j 3,use knife4j 2.0.9 which is based on swagger2 ### Verifying this change (Please pick either of the following options) 没有写testcase,但是在测试环境测试过 This change is a trivial rework / code cleanup without any test coverage. ### Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): 是的,增加了knife4j的相关依赖 - Anything that affects deployment: (yes / no / don't know) 没有 - The MGS(Microservice Governance Services), 不是 ### Documentation - Does this pull request introduce a new feature? (yes / no) 不是 - If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented) 还没有 - 需要提供使用文档,步骤很简单 - 1,打开application-linkis.yml,配置knife4j.enable=true - 2,打开linkis.properties,配置ds.linkis.test.mode=true - 启动服务之后,通过微服务地址http://ip:port/api/rest_j/v1/doc.html访问 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@linkis.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@linkis.apache.org For additional commands, e-mail: commits-h...@linkis.apache.org