# swagger-to-controller **Repository Path**: xiaoyun461/swagger-to-controller ## Basic Information - **Project Name**: swagger-to-controller - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-02-21 - **Last Updated**: 2022-02-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # swagger-to-ftlController #### 介绍 #### 软件架构 软件架构说明 swagger2 json 数据转为 controller和entity #### 使用说明(通过main方法) 1. 先获取你的swagger 的 json数据 例如: http://localhost:8080/v2/api-docs 2. 覆盖到src/main/resources/sw.json 3. 执行 com/xiaoyun/util/Swagger2Ftl.java 的main方法 #### 使用说明(通过url) 1.启动springboot ,浏览器请求 `http://localhost:8080/url/input?url=http://localhost:8080/v2/api-docs` `url=` 可以设置你需要转换的 swagger json数据地址 #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request