Have a AngularJS service calling the http Get and passing user object as an argument.
$http.get(urls.USER_SERVICE_API_LOGIN + user)
.then(...
And my Spring controller is as below-
@RequestMapping(value = "/login/{user}", method = RequestMethod.GET)
public ResponseEntity<?> findUserByUserNameAndPasswordForLogin(@PathVariable(value = "user") User user) { \\\ methos definition}
so getting exception when calling Spring controller saying "Failed to convert value of type 'java.lang.String' to required type 'model.User'" where user is my Java object and i understand AngularJS is trying to pass everything as a String. so what is the solution for this please?