Client中使用@Address进行地址传递,在拦截器中通过request.getUrl或者getURI会爆StringOutOfBoundsExcepion
- Dominant language
- Java
- Stars
- 1.9k
- Forks
- 241
- PR merge metrics
- No merged PRs in 30d
Description
CLient中的代码:
`
public interface HttpClient {
@PostRequest(url = "{1}",headers = {
"Content-Type: application/json"
})
@Address(host = "{0}")
ForestResponse post(String host,String url,@Body Object body, @Header Map headers);
}
`
在拦截器中

其中,reqeust.getUrl()出现StringOutOfBoundsExcepion
>
**问题分析:**
问题再与ForestURL.class 的toURLString方法

下面是堆栈数据

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.