alibaba / alibaba/Sentinel

Support param flow rules for web APIs in Spring Web controller

Open
#1,734 3 comments 0 reactions 0 assignees View on GitHub
area/integrations good first issue kind/enhancement
Dominant language
Java
Stars
23.1k
Forks
8.1k
PR merge metrics
No merged PRs in 30d

Description

## Issue Description

Type: bug report

### Describe what happened (or what feature you want)

### Describe what you expected to happen
在配置文件已配置全路径资源的情况下
![image](https://user-images.githubusercontent.com/44300551/93194145-54dc0e80-f77a-11ea-925c-cb18bb1df764.png)

![image](https://user-images.githubusercontent.com/44300551/93194236-73daa080-f77a-11ea-989a-0cd417e47727.png)
添加2个热点限流规则。
出现的情况 :1、以url作为资源名,规则不生效 (其他规则以url作为资源名可以生效,如流控、降级等)
2、以@SentinelResource注解定义的name作为资源名,规则生效

![image](https://user-images.githubusercontent.com/44300551/93194297-82c15300-f77a-11ea-91f0-c32c7dd3466d.png)

这种方式限制了动态添加热点规则,需要在项目中硬编码。

希望可以得到解决方法。谢谢~
### How to reproduce it (as minimally and precisely as possible)

### Tell us your environment
spring-cloud-starter-alibaba-sentinel 2.2.1

### Anything else we need to know?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported behavior with spring-cloud-starter-alibaba-sentinel 2.2.1, using a Spring Web controller and the configured full-path URL resource. Compare hotspot rules keyed by the URL with rules keyed by an @SentinelResource name, and define done as dynamic hotspot rules applying consistently without hardcoding them in the project.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.