@RequestMapping(method = RequestMethod.DELETE) public void deleteCompany(@RequestParam("id") Integer id) { companyRepository.delete(id); }