From 6b1193b5288c02d0553b353d3043a89066a9dbba Mon Sep 17 00:00:00 2001 From: Administrator <Administrator@S0ZHK00LKCA6OYY> Date: 星期二, 20 十一月 2018 11:40:33 +0800 Subject: [PATCH] 活动商品分享去除末尾/n --- fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SwiperPictureServiceImpl.java | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SwiperPictureServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SwiperPictureServiceImpl.java index ac5dca1..85f9a1f 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SwiperPictureServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SwiperPictureServiceImpl.java @@ -8,6 +8,7 @@ import javax.annotation.Resource; import javax.transaction.Transactional; +import org.springframework.cache.annotation.Cacheable; import org.springframework.stereotype.Service; import org.springframework.web.multipart.MultipartFile; @@ -126,6 +127,7 @@ } @Override + @Cacheable(value = "bannerCache", key = "'getByBannerCard-'+#card") public List<SwiperPicture> getByBannerCard(String card) throws SwiperPictureException { return swiperPictureMapper.getByBannerCard(card); } -- Gitblit v1.8.0