what is http 405 method not allowed code example
Example 1: http 405
405 Method Not Allowed
Example 2: Request method 'GET' not supported 405
@RestController
@RequestMapping(value="/api")
public class RequestMethodController {
@Autowired
private EmployeeService service;
@RequestMapping(value = "/employees", produces = "application/json")
public List findEmployees()
throws InvalidRequestException {
return service.getEmployeeList();
}
}