@RequestMapping(value = "/activate.action", method = RequestMethod.GET)
    public @ResponseBody
    Map<String, Object> activateUser(@RequestParam String token) {

        try {
            service.activateUser(token);
            return ResultSet.success("Your account has successfully been activated.");
        } catch (Exception e) {
            LOG.error("Account could not be activated: " + e.getMessage());
            return ResultSet.error("Account could not be activated.");
        }
    }
@ RequestMapping ( value = "/activate.action" , method = RequestMethod . GET ) public @ ResponseBody Map < String , Object > activateUser ( @ RequestParam String token ) { try { service . activateUser ( token ) ; return ResultSet . success ( "Your account has successfully been activated." ) ; } catch ( Exception e ) { LOG . error ( "Account could not be activated: " + e . getMessage ( ) ) ; return ResultSet . error ( "Account could not be activated." ) ; } }
@param token