El servidor te contestando con un error HTTP 400 Bad Request. Posiblemente sea por que le estas mandando parametros con nombres distintos a los que recibe tu endpoint. Intenta hacer la peticion de esta forma: import {Injectable} from '@angular/core'; import {HttpClient} from '@angular/common/http'; @Injectable({ providedIn: 'root' }) export class ListUserService { constructor(public http: HttpClient) { this.http.get('http://localhost:8080/user/getUsers/') .subscribe(response => { console.log(response); }); } getUsers() { const url = 'http://localhost:8080/user/getUsers/'; return this.http.get<Object[]>(url); } addFriend(user) { const config = new HttpHeaders().set('Content-Type','application/json') .set('Accept', 'application/json') const url = 'http://localhost:8080/meet/friend'; return this.http.post(url, {idOwner: user.id, userId: user.id}, { headers: config }).subscribe(response => { console.log(response); });; } } Y tu endpoint: @PostMapping(path = "/friend", consumes = "application/json", produces = "application/json") public ResponseEntity<Meet> createMeetWithFriend(@RequestParam("idOwner") Long idOwner, @RequestParam("idUser") Long idUser) { return new ResponseEntity<Meet>(meetService.createMeetWithFriend(idOwner, idUser), HttpStatus.OK); }