Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @RequestMapping(value = "/users", method = RequestMethod.GET)
- public @ResponseBody ResponseEntity<List<Usuario>> listUsers () {
- return new ResponseEntity<List<Usuario>>(usuarioService.listaDeUsuarios(), HttpStatus.OK);
- }
- $http.get('http://localhost:8080/users').then(function(resp) {
- console.log('Success', resp.data);
- }, function(err) {
- console.error('ERR', err.status);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement