我想使用多个参数作为Rest api进行搜索,并使用Angular 6进行使用
ServiceController.java
@Spring3CorsFilter
@ResponseBody
@RequestMapping(value = "/searchcount", method = RequestMethod.GET,headers="Accept=application/json")
public Integer getSearchcount(@RequestBody Orders A) {
return this.s.getSuiviCommandeCount(A);
}
Service.ts
constructor(private http: HttpClient) { }
baseUrl = 'http://localhost:8080/FacadeController';
private order:Orders;
getSearchcount(order: Object): Observable<Object> {
return this.http.get(`${this.baseUrl}` + `/searchcount`,order);
}
我希望将过滤器参数作为对象类型Order发送