@RequestMapping(value = "/findByUsername", method = RequestMethod.GET)
	public @ResponseBody
	ResponseAccount findByUsername(
			@RequestParam(value = "username", required = true) String username) {
		logger.debug("Received request to get account by username");

		ResponseAccount acconut = accountService.getAccountByUsername(username);

		return acconut;

	}
@ RequestMapping ( value = "/findByUsername" , method = RequestMethod . GET ) public @ ResponseBody ResponseAccount findByUsername ( @ RequestParam ( value = "username" , required = true ) String username ) { logger . debug ( "Received request to get account by username" ) ; ResponseAccount acconut = accountService . getAccountByUsername ( username ) ; return acconut ; }
Handles request for getting an account by username