Open chenshijun007 opened 7 years ago
感谢反馈。文档需要修改一下,目前不支持配置web服务器的contextpath,在接口的@Path注解中配置uri就可以。 可以参考motan/motan-extension/protocol-extension/motan-protocol-restful模块下的/src/test/java/com/weibo/api/motan/protocol/restful/TestRestful.java 使用xml配置时,server和client端都配置endpointFactory="netty"就可以了
关于restful配置server.xml的问题:如下
在示例:/src/test/java/com/weibo/api/motan/protocol/restful/TestRestful.java里边 有serviceConfig.setProtocol(protocolConfig)这个配置,将其配置在server.xml中的
@chenshijun007 已经增加了restful的demo,稍后会合并到主干。你可以先参考addRestfulDemo分支中demo模块的RestfulServerDemo、RestfulClient
根据现在的事例配置会报错,有一定的问题,如: 示例描述的
会报如下错误: