I want to add search field in the crud project I used the method findAllByNameAndLast(Name, Last);
but the method is not working also I don't know how to return a result to the index.html
project link is : project link
@RequestMapping(value = "/searchEmployee/{firstname}/{lastname}", method = RequestMethod.GET)
public String getEmployeeByName(@PathVariable("name") String Name, @PathVariable("last") String Last, ModelMap modelMap) {
List<Student> student = re.findAllByNameAndLast(Name,Last);
modelMap.addAttribute("message", student);
return "index";
}