2021年3月2日

摘要: 1.运行 context-path 插件 我们在使用 soul 网关时,yml 文件里就配置了 contextPath,不过我们可以使用 context_path 插件进行重写,这也体现了 soul 网关的灵活配置 登录 soul-admin 开启 context-path 插件,选择器规则配置如下 阅读全文
posted @ 2021-03-02 14:32 fightingting 阅读(276) 评论(0) 推荐(0) 编辑
 
摘要: 登录 soul-admin,开启 waf 插件。 官网上的这两句很重要,waf 插件源码的实现也是根据这两句话来的。 当 module 设置为 black 模式的时候,只有匹配的流量才会执行拒绝策略,不匹配的,直接会跳过。 当 module 设置为 mixed 模式的时候,所有的流量都会通过 waf 阅读全文
posted @ 2021-03-02 14:29 fightingting 阅读(142) 评论(0) 推荐(0) 编辑
 
摘要: 参考 soul 官方文档,sign插件 1.启动 soul-admin, 开启 sign 插件,添加 sign 插件的选择器和规则,这里和 divide 插件的一致 2.soul-bootstrap 引入依赖,启动 soul-bootstrap,启动 soul-examples-http <depe 阅读全文
posted @ 2021-03-02 14:27 fightingting 阅读(602) 评论(0) 推荐(0) 编辑
 
摘要: Java8 新出的 stream 流操作集合的,每次想使用时,虽然知道有这个功能,但一时想不出来怎么写,网上查有时候不太好查,因此自己来写一篇总结贴。 我们新建一个类 Student。 @Data @AllArgsConstructor public class Student { private 阅读全文
posted @ 2021-03-02 14:25 fightingting 阅读(809) 评论(0) 推荐(0) 编辑