Browse Source

官网新增关键词等开发

anderx 2 years ago
parent
commit
701afea430

+ 2 - 0
src/main/java/com/kede/admin/service/impl/AdminServiceImpl.java

@@ -3,6 +3,7 @@ package com.kede.admin.service.impl;
 import com.kede.common.dao.SysConfigMapper;
 import com.kede.common.model.SysConfig;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.cache.annotation.Cacheable;
 import org.springframework.stereotype.Service;
 
 import com.kede.admin.service.AdminService;
@@ -40,6 +41,7 @@ public class AdminServiceImpl implements AdminService {
 	}
 
 	@Override
+	@Cacheable(cacheNames="getSysConfig#600", key = "'getSysConfig'+':ps='+#id")
 	public SysConfig getSysConfig(Integer id) {
 		return sysConfigMapper.selectByPrimaryKey(id);
 	}

+ 1 - 0
src/main/java/com/kede/core/cache/serializer/FastJsonRedisSerializer.java

@@ -13,6 +13,7 @@ public class FastJsonRedisSerializer implements RedisSerializer<Object> {
 		pc.addAccept("com.kede.linksAndHot.bo");
 		pc.addAccept("com.kede.core.mybatis.page.Pagination");
 		pc.addAccept("com.kede.news.bo.OutNews");
+		pc.addAccept("com.kede.common.model.SysConfig");
 		pc.addAccept("com.kede.banners.bo.OutBannerDetails");
 		pc.addAccept("com.kede.activity.bo.OutActivity");
 	}

File diff suppressed because it is too large
+ 3 - 3
src/main/webapp/WEB-INF/views/portal/about.html


File diff suppressed because it is too large
+ 4 - 4
src/main/webapp/WEB-INF/views/portal/index.html