# gateway-nacos-swagger **Repository Path**: lxg0808/gateway-nacos-swagger ## Basic Information - **Project Name**: gateway-nacos-swagger - **Description**: spring cloud gateway 集成swagger 提供公开接口能力; 集成nacos 使用gateway基于注册中心自动路由能力; 使用nacos-config 动态路由能力。 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 6 - **Created**: 2023-11-16 - **Last Updated**: 2023-11-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 快速启动nacos #### 路径 D:\code\windows-nacos\bin #### 启动命令 Windows 启动命令(standalone代表着单机模式运行,非集群模式): startup.cmd -m standalone ####浏览器访问 http://127.0.0.1:8848/nacos/ #### nacos 动态路由格式, gateway-json-routes DEFAULT_GROUP 配置使用json [ { "id": "sc-service", "uri": "lb://sc-service", "predicates":[ { "name": "Path", "args": { "pattern": "/admin/**" } } ] } , { "id": "service01-route", "uri": "lb://service01-center", "predicates":[ { "name": "Path", "args": { "pattern": "/test/**" } } ], "filters": [ { "name": "StripPrefix", "args": { "_genkey_0": "1" } } ] } ] ### git 操作 git pull git commit -am "xxx" git push qmzj_bingquan cwx501791