You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2022/01/06 11:03:24 UTC

[GitHub] [servicecomb-java-chassis] sunshinexp1 opened a new issue #2687: serviceComb从1.3.0升级到2.1.5后,通过JAX-RS定义的RestSchema有问题

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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] sunshinexp1 commented on issue #2687: serviceComb从1.3.0升级到2.1.5后,通过JAX-RS定义的RestSchema有问题

Posted by GitBox <gi...@apache.org>.
sunshinexp1 commented on issue #2687:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2687#issuecomment-1007194959


   的确是升级过程中弄丢了provider-jaxrs 包依赖,加上后,功能都正常了。


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] sunshinexp1 closed issue #2687: serviceComb从1.3.0升级到2.1.5后,通过JAX-RS定义的RestSchema有问题

Posted by GitBox <gi...@apache.org>.
sunshinexp1 closed issue #2687:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2687


   


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] sunshinexp1 commented on issue #2687: serviceComb从1.3.0升级到2.1.5后,通过JAX-RS定义的RestSchema有问题

Posted by GitBox <gi...@apache.org>.
sunshinexp1 commented on issue #2687:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2687#issuecomment-1007194959


   的确是升级过程中弄丢了provider-jaxrs 包依赖,加上后,功能都正常了。


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2687: serviceComb从1.3.0升级到2.1.5后,通过JAX-RS定义的RestSchema有问题

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #2687:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2687#issuecomment-1007168847


   能提供一个DEMO吗? 或者看下是不是项目里面没有依赖 `provider-jaxrs` 包。 


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] sunshinexp1 closed issue #2687: serviceComb从1.3.0升级到2.1.5后,通过JAX-RS定义的RestSchema有问题

Posted by GitBox <gi...@apache.org>.
sunshinexp1 closed issue #2687:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2687


   


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org