apache shenyu网关简单入门

一、 简介

二、 shenyu-admin后台搭建

2.1 下载,建议新手使用单机部署的方式

2.2 创建对应sql脚本

2.3 配置数据库并修改yaml

  • 解压缩 apache-shenyu-incubating-2.4.3-bootstrap-bin.tar.gz。

2.4 启动后台

  • 进入 bin 目录, start.bat --spring.profiles.active = mysql

  • 访问地址: http://localhost:9095, 账号:admin; 密码: 123456

三、 HTTP插件案例

3.1 开启http支持

3.2 下载案例代码

  • 就直接下载我写好的案例把[狗头], https://gitee.com/qjwyss/yss-shenyu.git
  • 启动 YssShenyuGatewayApplication,[9195端口] ;
  • 启动 YssShenyuHttpApplication, [8189], 注: 启动该服务后,会在后台看到自动将规则注册上去了

3.3 访问代理

OK啦~

posted @ 2022-07-29 12:18  请叫我猿叔叔  阅读(6535)  评论(1)    收藏  举报