錯誤如下:
template might not exist or might not be accessible by any of the configured Template Resolvers
解決方法:
1、確定模板是否在默認templates文件夾里面,並且路徑要和返回的View名字一致。
2、new ModelAndView("/log/loglist");這樣寫是不對的,應該把開頭的斜杠去掉,改成:new ModelAndView("log/loglist");
參考: