How SSM initializes index.jsp or index.ftl pages

how should I open the index implementation on the home page of the website to query the relevant data from the background database and then bind it to the page?


Map to a method through index, and return the data that ModelAndView,Model is queried, View is a page that jumps, and jsp can obtain the data in Model.

@RequestMapping("/index")
public ModelAndView index(){
    ModelAndView mav = new ModelAndView();
    //
    //mav.setView();
    return mav;
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e49353-5929d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e49353-5929d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?