Answer the question
In order to leave comments, you need to log in
Why is the method in the controller called 3 times?
@RequestMapping("/")
@Controller
public class HotelController {
@Autowired
private HotelDAO hotelDAO;
@RequestMapping(method = RequestMethod.GET)
public String list(Model uiModel) {
List<HotelAudit> list = hotelDAO.findAll();
uiModel.addAttribute("hotels", list);
return "employeesListDisplay";
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question