Skip to content

Commit

Permalink
fixed #953
Browse files Browse the repository at this point in the history
  • Loading branch information
kerwin612 committed Aug 15, 2023
1 parent c332b13 commit 6a9300e
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public class ShenyuBootstrapApplication {
* 示例一:
代表 `/test/payment`, `/test/findByUserId` 都会被网关代理。

```java
```java
@RestController
@RequestMapping("/test")
@ShenyuSpringCloudClient(path = "/test/**")
Expand All @@ -160,7 +160,7 @@ public class ShenyuBootstrapApplication {
* 示例二:
代表 `/order/save`,会被网关代理,而`/order/findById` 则不会。

```java
```java
@RestController
@RequestMapping("/order")
@ShenyuSpringCloudClient(path = "/order")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ description: http用户

* 举例子 (1): 代表 `/test/payment`,`/test/findByUserId` 都会被网关代理。

```java
```java
@RestController
@RequestMapping("/test")
@SoulSpringMvcClient(path = "/test/**")
Expand All @@ -111,7 +111,7 @@ description: http用户
return userDTO;
}
}
```
```

* 举例子 (2):代表 `/order/save`,会被网关代理,而`/order/findById` 则不会。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ description: SpringCloud接入ShenYu网关
* 示例一:
代表 `/test/payment`, `/test/findByUserId` 都会被网关代理。

```java
```java
@RestController
@RequestMapping("/test")
@ShenyuSpringCloudClient(path = "/test/**")
Expand All @@ -137,7 +137,7 @@ description: SpringCloud接入ShenYu网关
代表 `/order/save`,会被网关代理,而`/order/findById` 则不会。


```java
```java
@RestController
@RequestMapping("/order")
@ShenyuSpringCloudClient(path = "/order")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ description: SpringCloud接入ShenYu网关
* 示例一:
代表 `/test/payment`, `/test/findByUserId` 都会被网关代理。

```java
```java
@RestController
@RequestMapping("/test")
@ShenyuSpringCloudClient(path = "/test/**")
Expand All @@ -130,7 +130,7 @@ description: SpringCloud接入ShenYu网关
* 示例二:
代表 `/order/save`,会被网关代理,而`/order/findById` 则不会。

```java
```java
@RestController
@RequestMapping("/order")
@ShenyuSpringCloudClient(path = "/order")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public class ShenyuBootstrapApplication {
* 示例一:
代表 `/test/payment`, `/test/findByUserId` 都会被网关代理。

```java
```java
@RestController
@RequestMapping("/test")
@ShenyuSpringCloudClient(path = "/test/**")
Expand All @@ -159,7 +159,7 @@ public class ShenyuBootstrapApplication {
* 示例二:
代表 `/order/save`,会被网关代理,而`/order/findById` 则不会。

```java
```java
@RestController
@RequestMapping("/order")
@ShenyuSpringCloudClient(path = "/order")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public class ShenyuBootstrapApplication {
* 示例一:
代表 `/test/payment`, `/test/findByUserId` 都会被网关代理。

```java
```java
@RestController
@RequestMapping("/test")
@ShenyuSpringCloudClient(path = "/test/**")
Expand All @@ -159,7 +159,7 @@ public class ShenyuBootstrapApplication {
* 示例二:
代表 `/order/save`,会被网关代理,而`/order/findById` 则不会。

```java
```java
@RestController
@RequestMapping("/order")
@ShenyuSpringCloudClient(path = "/order")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public class ShenyuBootstrapApplication {
* 示例一:
代表 `/test/payment`, `/test/findByUserId` 都会被网关代理。

```java
```java
@RestController
@RequestMapping("/test")
@ShenyuSpringCloudClient(path = "/test/**")
Expand All @@ -159,7 +159,7 @@ public class ShenyuBootstrapApplication {
* 示例二:
代表 `/order/save`,会被网关代理,而`/order/findById` 则不会。

```java
```java
@RestController
@RequestMapping("/order")
@ShenyuSpringCloudClient(path = "/order")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public class ShenyuBootstrapApplication {
* 示例一:
代表 `/test/payment`, `/test/findByUserId` 都会被网关代理。

```java
```java
@RestController
@RequestMapping("/test")
@ShenyuSpringCloudClient(path = "/test/**")
Expand All @@ -160,7 +160,7 @@ public class ShenyuBootstrapApplication {
* 示例二:
代表 `/order/save`,会被网关代理,而`/order/findById` 则不会。

```java
```java
@RestController
@RequestMapping("/order")
@ShenyuSpringCloudClient(path = "/order")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public class ShenyuBootstrapApplication {
* 示例一:
代表 `/test/payment`, `/test/findByUserId` 都会被网关代理。

```java
```java
@RestController
@RequestMapping("/test")
@ShenyuSpringCloudClient(path = "/test/**")
Expand All @@ -160,7 +160,7 @@ public class ShenyuBootstrapApplication {
* 示例二:
代表 `/order/save`,会被网关代理,而`/order/findById` 则不会。

```java
```java
@RestController
@RequestMapping("/order")
@ShenyuSpringCloudClient(path = "/order")
Expand Down

0 comments on commit 6a9300e

Please sign in to comment.