diff --git a/README.md b/README.md index 476cda8..6d0b767 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,9 @@ # ssm项目 - ## ssm 介绍 ```java 一个基于spring mvc+mybatis的框架。页面是采用aceAdmin+easyUI. 使用shiro作为安全框架,做权限控制 ``` - ## ssm开发环境 ```java 1. jdk 1.8 @@ -14,7 +12,6 @@ 4. redis 5. tomcat 8 ``` - ## ssm 使用说明 ```java 1. 菜单目录采用设计模式中的容器模式,理论上是可以实现三级甚至四级的菜单目录(参考代码:com.lq.cms.mode.MenusComposite). @@ -24,7 +21,6 @@ 5. 使用spring session整合redis实现在集群中session共享的效果 6. 微信公众号相关开发代码(com.lq.wechat),其中客服消息采用了建造者模式(com.lq.wechat.mode.template)。 ``` - ## 三层架构理念: ```java 1. 数据库表与mapping.xml一一对应。 @@ -33,9 +29,8 @@ 4. controller层代码密度低 只负责简单的数据接受和转发。以及页面跳转的控制 ``` - ## 示例 ```java 1. 项目案例:http://106.12.122.216:8080/ssm/cms/ 2. 默认账号/密码:admin/123 -``` +``` \ No newline at end of file diff --git a/src/main/java/com/lq/cms/web/sys/PermissionController.java b/src/main/java/com/lq/cms/web/sys/PermissionController.java index 37411b8..0750964 100644 --- a/src/main/java/com/lq/cms/web/sys/PermissionController.java +++ b/src/main/java/com/lq/cms/web/sys/PermissionController.java @@ -29,9 +29,11 @@ import java.util.Map; @RequestMapping("/cms/permission") public class PermissionController extends BaseController{ - private static Logger LOGGER = LoggerFactory.getLogger(PermissionController.class); - - private static final String INDEX_URL = "/cms/permission/index"; + public static Logger LOGGER = LoggerFactory.getLogger(PermissionController.class); + /** + * 首页路径 + */ + public static final String INDEX_URL = "/cms/permission/index"; @Autowired private SysPermissionService sysPermissionService; diff --git a/src/main/java/com/lq/code/cache/RedisCache.java b/src/main/java/com/lq/code/cache/RedisCache.java index bfdfe89..e38f622 100755 --- a/src/main/java/com/lq/code/cache/RedisCache.java +++ b/src/main/java/com/lq/code/cache/RedisCache.java @@ -6,6 +6,8 @@ import org.springframework.data.redis.core.RedisCallback; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.util.SerializationUtils; +import java.io.File; +import java.io.FileReader; import java.util.concurrent.Callable; /** @@ -97,4 +99,6 @@ public class RedisCache implements Cache { return "OK"; }); } + + }