Jersey服务中文乱码解决方法

原创
2014/04/18 11:08
阅读数 1.3K
@Path("/users")public class UserService { 
	@GET
	@Path("/get")
	public Response addUser(@HeaderParam("user-agent") String userAgent) {
                Response response = Response.status(200).
                    entity("yourEntity").
                    header("Content-Type", "application/json; charset=utf-8").build();
return response;
    }
}


展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
0 评论
0 收藏
0
分享
返回顶部
顶部