Thanks Toxic,
I wanted to only map ".list". Should I map any thing else? in my controller, I only need ".list"
here is my controller:
Code:
@Controller
public class LabResultController {
private ResultServiceDAO resultServiceDAO;
@Autowired
public void setResultServiceDAO(ResultServiceDAO resultServiceDAO) {
this.resultServiceDAO = resultServiceDAO;
}
@RequestMapping(method = RequestMethod.GET, value = "/labresult.list")
public ModelAndView myRestMethod() {
result = resultServiceDAO.getResultProfileByResultId(0);
if (!result.isEmpty()) {
return new ModelAndView("labresult", "response", result);
} else
return null;
}
}