You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
响应结果是错误的:
rest service Path no found, current path info:PathMatcher{path='/person/getPerson', version='null', group='null', port=null, hasPathVariable=false, contextPath='null'}
他应该调用到getPerson接口的,但是一直调用不到
Expected Behavior
Actual Behavior
If there is an exception, please attach the exception trace:
rest service Path no found, current path info:PathMatcher{path='/person/getPerson', version='null', group='null', port=null, hasPathVariable=false, contextPath='null'}
The text was updated successfully, but these errors were encountered:
Environment
Steps to reproduce this issue
提供者定义接口
@path("person")
public interface PersonService {
@get // admin项目订阅zk时当interface包含内部类$字符时出现问题 #3
@path("{id: \d+}")
String getUser(@PathParam("id") Long id);
@get
@path("getPerson")
String getPerson(@QueryParam("source") String source);
}
2.提供者实现类
@DubboService(interfaceClass = PersonService.class, protocol = {"rest", "dubbo"},version = "1.0.0",group = "dubbo-provider")
public class DubboPersonServiceImpl implements PersonService {
}
3. 配置文件
dubbo:
registry:
protocol: zookeeper
address: 127.0.0.1:2181
protocol:
rest:
name: rest
port: 9001
dubbo:
name: dubbo
port: 8001
consumer:
version: 1.0.0
timeout: 10000
retries: 0
check: false
provider:
version: 1.0.0
group: dubbo-provider
validation: false
application:
name: dubbo-provider
4.. 发起curl请求
curl --location --request GET 'localhost:9001/person/getPerson'
--header 'rest-service-version: 1.0.0'
--header 'rest-service-group: dubbo-provider'
--header 'version: 1.0.0'
--header 'group: dubbo-provider'
--header 'Content-Type: application/x-www-form-urlencoded'
--data-urlencode 'source=postman'
--data-urlencode 'version=1.0.0'
响应结果是错误的:
rest service Path no found, current path info:PathMatcher{path='/person/getPerson', version='null', group='null', port=null, hasPathVariable=false, contextPath='null'}
他应该调用到getPerson接口的,但是一直调用不到
Expected Behavior
Actual Behavior
If there is an exception, please attach the exception trace:
The text was updated successfully, but these errors were encountered: