sunshinexp1 opened a new issue #2687:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2687
serviceComb从1.3.0升级到2.1.5后,通过JAX-RS定义的RestSchema有问题:
举个例子说明:下面的定义,升级后,在服务中心里的SCHEMA查看,接口路径直接变成/JaxrsHelloImpl,而不是/jaxrshello/sayhi,@Path不起作用,但是如果换成@RequestMapping这种方式去定义,就正常。
@RestSchema(schemaId = "jaxrsHello")
@Path("/jaxrshello")
@Produces(MediaType.APPLICATION_JSON)
public class JaxrsHelloImpl implements Hello {
@Path("/sayhi")
@POST
@Override
public String sayHi(String name) {
return "Hello " + name;
}
}
--
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]