File tree Expand file tree Collapse file tree
src/main/java/com/raysmond/blog Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515import static org .springframework .web .bind .annotation .RequestMethod .*;
1616import org .springframework .web .bind .annotation .RequestParam ;
1717
18- import java .util .ArrayList ;
19- import java .util .List ;
20-
2118/**
2219 * @author Raysmond<i@raysmond.com>.
2320 */
Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ public class TagService {
2525 public static final String CACHE_NAME = "cache.tag" ;
2626 public static final String CACHE_NAME_TAGS = "cache.tag.all" ;
2727
28- public static final String CACHE_TYPE = "'' _Tag_' '" ;
29- public static final String CACHE_KEY = CACHE_TYPE + ".concat( #tagName) " ;
30- public static final String CACHE_TAG_KEY = CACHE_TYPE + ".concat( #tag.name) " ;
28+ public static final String CACHE_TYPE = "'_Tag_'" ;
29+ public static final String CACHE_KEY = CACHE_TYPE + " + #tagName" ;
30+ public static final String CACHE_TAG_KEY = CACHE_TYPE + " + #tag.name" ;
3131
3232 @ Autowired
3333 public TagService (TagRepository tagRepository ){
@@ -61,4 +61,5 @@ public List<Tag> getAllTags(){
6161
6262 return tags ;
6363 }
64+
6465}
You can’t perform that action at this time.
0 commit comments