JAX-RS @PathParam How to pass a String with slashes, hyphens & equals too

后端 未结 5 1744
北荒
北荒 2020-12-14 14:36

I am new to JAX-RS and I am trying to use Jersey to build a simple RESTful Webservice.

I have 2 questions. Please clarify these:

  1. I am trying to have

5条回答
  •  太阳男子
    2020-12-14 15:05

    This is how you enable slashes in path params:

    @Path("{inchiname : .+}")
    public String get3DCoordinates(@PathParam("inchiname")String inchiName) 
    

提交回复
热议问题