|
|
@@ -2,7 +2,6 @@ package com.izouma.nineth.web;
|
|
|
|
|
|
import com.izouma.nineth.domain.Collection;
|
|
|
import com.izouma.nineth.domain.FileObject;
|
|
|
-import com.izouma.nineth.domain.News;
|
|
|
import com.izouma.nineth.dto.*;
|
|
|
import com.izouma.nineth.exception.BusinessException;
|
|
|
import com.izouma.nineth.repo.CollectionRepo;
|
|
|
@@ -23,6 +22,7 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
import java.io.IOException;
|
|
|
import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
+import org.springframework.cache.annotation.Cacheable;
|
|
|
|
|
|
@RestController
|
|
|
@RequestMapping("/collection")
|
|
|
@@ -113,7 +113,7 @@ public class CollectionController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@GetMapping("/recommend")
|
|
|
-// @Cacheable("recommend")
|
|
|
+ @Cacheable("recommend")
|
|
|
public List<RecommendDTO> recommendAll() {
|
|
|
List<RecommendDTO> recommedDTOS = new ArrayList<>();
|
|
|
|