Java ee 6 resteasy中@pathparam和@QueryParam之间的差异
我是开发Resteasy的新手。我不知道@pathparam和@Queryparam之间的区别。哪一个最好?@pathparam注释将路径段的值绑定到资源方法参数。如果您使用@Path(“login/{zip}”),HTTP就会像Java ee 6 resteasy中@pathparam和@QueryParam之间的差异,java-ee-6,Java Ee 6,我是开发Resteasy的新手。我不知道@pathparam和@Queryparam之间的区别。哪一个最好?@pathparam注释将路径段的值绑定到资源方法参数。如果您使用@Path(“login/{zip}”),HTTP就会像http://server:port/login/12345,@PathParam(“zip”)是12345 @QueryParam注释将路径段的值绑定到资源方法参数。如果您@Path(“login”),HTTP就会像http://server:port/login?i
http://server:port/login/12345
,@PathParam(“zip”)是12345
@QueryParam注释将路径段的值绑定到资源方法参数。如果您@Path(“login”),HTTP就会像http://server:port/login?id=12345
,@QueryParam(“id”)是12345