我正在使用CXF - Rest
服务。
@GET
@Produces({"application/xml", "application/json"})
@Path("/search/")
R findUser(@QueryParam("email") String email);
我正在调用GET
来自Postman
or的调用cURL
,类似这样
http://localhost:8080/rest-service/search/?email=test+1@gmail.com
但是当我调试该email
字段时,我将数据字段作为test 1@gmail.com
. 我猜某处 URL 解码正在发生,因此+
正在消失?如何将 CXF/service 配置not to alter
为 URL 参数