Tag: forwarding

泽西URL转发

在Jersey REST方法中,我想转发到另一个网站。 我怎样才能做到这一点? @Path(“/”) public class News { @GET @Produces(MediaType.TEXT_HTML) @Path(“go/{news_id}”) public String getForwardNews( @PathParam(“news_id”) String id) throws Exception { //how can I make here a forward to “http://somesite.com/news/id” (not redirect)? return “”; } } 编辑: 尝试执行以下操作时,我No thread local value in scope for proxy of class $Proxy78错误的No thread local value in scope for proxy of […]