首页访问优化

This commit is contained in:
xiongxiaoyang 2019-11-11 17:12:02 +08:00
parent c37e539cb4
commit bddbe5f3b5

View File

@ -31,7 +31,7 @@ public class IndexController {
@RequestMapping(value = {"/index.html","/","/books","/books/index.html"}) @RequestMapping(value = {"/index.html","/","/books","/book","/book/index.html"})
public String index(ModelMap modelMap){ public String index(ModelMap modelMap){
List<Book> recBooks = (List<Book>) commonCacheUtil.getObject(CacheKeyConstans.REC_BOOK_LIST_KEY); List<Book> recBooks = (List<Book>) commonCacheUtil.getObject(CacheKeyConstans.REC_BOOK_LIST_KEY);
if (!indexRecBooksConfig.isRead() || recBooks == null) { if (!indexRecBooksConfig.isRead() || recBooks == null) {