Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
noear committed Sep 25, 2023
1 parent 168887d commit c849d7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,12 @@ public class Demo31 {
```


### 定制能力
### 定制能力(详见主题路由器:[TopicRouter.md](TopicRouter.md)

```java
public class Demo15_path {
public void main(){
//切换为模式匹配路由器(支持 * 和 ** 占位符;支持 / 或 . 做为间隔)
//切换为模式匹配路由器 + RoutingPath(支持 * 和 ** 占位符;支持 / 或 . 做为间隔)
DamiConfig.configure(new TopicRouterPatterned(RoutingPath::new));

//拦截
Expand All @@ -195,7 +195,7 @@ public class Demo15_path {
```java
public class Demo15_tag {
public void main(){
//切换为模式匹配路由器(支持 * 和 ** 占位符;支持 / 或 . 做为间隔
//切换为模式匹配路由器 + RoutingTag(":"前为主题,后按 "," 号分割作为tag
DamiConfig.configure(new TopicRouterPatterned(RoutingTag::new));

//拦截
Expand Down

0 comments on commit c849d7b

Please sign in to comment.