D
D
ddddd tttt2017-01-24 17:11:05
Hibernate
ddddd tttt, 2017-01-24 17:11:05

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";
    }
}

ddf41344a328437aa62371fa4a337b3d.PNG

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question