cuixiushuai opened a new issue, #3431:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3431
### servicecomb.governance apiPath匹配错误
1. 接口示例
@RequestMapping("/")
public interface ThirdTestInterface {
@GetMapping(path = "third1")
void accessThird1();
@GetMapping(path = "third2")
void accessThird2();
}
2.配置示例
matchGroup:
test: |
matches:
- apiPath:
prefix: "/third"
retry:
test: |
order: 100
3.关键代码

由截图发现,governanceRequest中的path=nvocation.getSchemaMeta().getSwagger().getBasePath()
+ invocation.getOperationMeta().getOperationPath(),叠加后,多了个/
4.修改建议
参考org.apache.servicecomb.common.rest.definition.RestOperationMeta#concatPath
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]