M.M
0
Q:

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<Employee> findEmployees()
      throws InvalidRequestException {
        return service.getEmployeeList();
    }
}
0

New to Communities?

Join the community