如何创建接受“@”符号参数的 GET 休息方法?目前它不喜欢这样,因为@ 符号。我正在传递 /resource/user/my@email.com/password
@Path("/user/{Email}/{Password}")
@GET
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
public JResponse<DtoUser> ValidateUser(@PathParam("Email") String email,@PathParam("Password") String password) {
logger.log(Level.INFO, "Validating user {0}", email);
IUserRepository repo = new UserRepository();
return JResponse.ok(repo.ValidateUser(email, password)).build();
}