今天开始对soul的学习,目标:
通过官方文档初步了解soul
环境搭建并运行demo(运行soul-admin soul-bootstrap)
IDE(已安装idea)、JDK1.8、相关工具(git、maven)
百度soul源码地址:
码云(国内) https://gitee.com/shuaiqiyu/soul/
github(国外) https://github.com/Dromara/soul
官方文档 https://dromara.org/zh-cn/docs/soul/soul.html
下载代码的时候先通过官方文档了解一下soul是什么:可扩展,高性能,响应式的 API 网关
API网关概念参考 https://www.jianshu.com/p/7baab672b822
从上面soul的架构图来看,soul大概包括几个部分:集群、插件、处理模块、管理端、监控及面板,官方介绍soul的功能特点:
mvn clean package install -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -Drat.skip=true -Dcheckstyle.skip=true
此处有官方的入门教程:https://dromara.org/zh-cn/docs/soul/induction.html 本次并未完全按照该步骤进行
soul的模块结构
soul-admin
soul支持mysql或者h2,因为本地没有安装mysql,暂时使用h2,放开application.yml中下图注释的属性
运行SoulAdminBootstrap启动soul-admin,然后访问:http://localhost:9095/index.html
默认用户名:admin 密码: 123456
(官方文档:https://dromara.org/en-us/docs/soul/setup.html)
从菜单看管理端主要有两块功能:系统管理(System Manage)包括了用户、插件、授权、元数据、字典等管理功能,而插件列表(PluginList)里包括了插件管理功能中配置的插件的配置管理,如下图:
soul-bootstrap
运行SoulBootstrapApplication启动soul-admin,然后访问:http://localhost:9195
,返回
{"code":-107,"message":"Can not find selector, please check your configuration!","data":null}
看起来原因是没有配置selector,具体如何解决,下回分解