I have a class which send an email with activation link and the message is something like that :
String message = "<html> <body><a href=\"http://localhost:8080/token?foo=abc\" >ACTIVE MY ACCOUNT</a> </body></html>";
On the other hand I have a controller
@Controller
@RequestMapping(value="/token",method = RequestMethod.GET)
public class RegisterController {
public String active(@RequestParam("foo") String foo) {
return foo;
}
}
and I want foo to have abc value, but now when I click on activation link I got
Problem accessing /token.
Reason: Not Found
How can I modify this ?