diff --git a/src/main/java/com/rymcu/vertical/config/BaseShiroFilterFactoryBean.java b/src/main/java/com/rymcu/vertical/config/BaseShiroFilterFactoryBean.java index 8f745ed..bd2232a 100644 --- a/src/main/java/com/rymcu/vertical/config/BaseShiroFilterFactoryBean.java +++ b/src/main/java/com/rymcu/vertical/config/BaseShiroFilterFactoryBean.java @@ -19,10 +19,11 @@ import java.util.HashSet; import java.util.Set; /** + * @author ronger * Shiro静态资源配置 * */ public class BaseShiroFilterFactoryBean extends ShiroFilterFactoryBean { - // 对ShiroFilter来说,需要直接忽略的请求 + private Set ignoreExt; public BaseShiroFilterFactoryBean() { diff --git a/src/main/java/com/rymcu/vertical/config/MybatisConfigurer.java b/src/main/java/com/rymcu/vertical/config/MybatisConfigurer.java index 1d83e0a..b983130 100644 --- a/src/main/java/com/rymcu/vertical/config/MybatisConfigurer.java +++ b/src/main/java/com/rymcu/vertical/config/MybatisConfigurer.java @@ -18,6 +18,7 @@ import static com.rymcu.vertical.core.constant.ProjectConstant.*; /** * Mybatis & Mapper & PageHelper 配置 + * @author ronger */ @Configuration public class MybatisConfigurer { @@ -32,10 +33,10 @@ public class MybatisConfigurer { PageInterceptor pageHelper = new PageInterceptor(); Properties properties = new Properties(); properties.setProperty("helperDialect", "mysql"); - properties.setProperty("pageSizeZero", "true");//分页尺寸为0时查询所有纪录不再执行分页 - properties.setProperty("reasonable", "true");//页码<=0 查询第一页,页码>=总页数查询最后一页 - properties.setProperty("supportMethodsArguments", "true");//支持通过 Mapper 接口参数来传递分页参数 - properties.setProperty("rowBoundsWithCount", "true");// + properties.setProperty("pageSizeZero", "true"); + properties.setProperty("reasonable", "true"); + properties.setProperty("supportMethodsArguments", "true"); + properties.setProperty("rowBoundsWithCount", "true"); pageHelper.setProperties(properties); //添加插件 @@ -57,7 +58,7 @@ public class MybatisConfigurer { //配置通用Mapper,详情请查阅官方文档 Properties properties = new Properties(); properties.setProperty("mappers", MAPPER_INTERFACE_REFERENCE); - properties.setProperty("notEmpty", "false");//insert、update是否判断字符串类型!='' 即 test="str != null"表达式内是否追加 and str != '' + properties.setProperty("notEmpty", "false"); properties.setProperty("IDENTITY", "JDBC"); mapperScannerConfigurer.setProperties(properties); diff --git a/src/main/java/com/rymcu/vertical/config/ShiroConfig.java b/src/main/java/com/rymcu/vertical/config/ShiroConfig.java index 76b1fb1..9fda51a 100644 --- a/src/main/java/com/rymcu/vertical/config/ShiroConfig.java +++ b/src/main/java/com/rymcu/vertical/config/ShiroConfig.java @@ -22,6 +22,9 @@ import javax.servlet.Filter; import java.util.LinkedHashMap; import java.util.Map; +/** + * @author ronger + */ @Configuration @ConfigurationProperties(prefix = "redis.shiro") public class ShiroConfig implements EnvironmentAware { diff --git a/src/main/java/com/rymcu/vertical/config/ShiroLoginFilter.java b/src/main/java/com/rymcu/vertical/config/ShiroLoginFilter.java index 1f54a53..3a0b831 100644 --- a/src/main/java/com/rymcu/vertical/config/ShiroLoginFilter.java +++ b/src/main/java/com/rymcu/vertical/config/ShiroLoginFilter.java @@ -13,7 +13,9 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** - * Created by wanwh on 2019/1/24 0024. + * + * @author wanwh + * @date 2019/1/24 0024 */ public class ShiroLoginFilter extends FormAuthenticationFilter { diff --git a/src/main/java/com/rymcu/vertical/config/UsernamePasswordToken.java b/src/main/java/com/rymcu/vertical/config/UsernamePasswordToken.java index 863d4d1..4022e18 100644 --- a/src/main/java/com/rymcu/vertical/config/UsernamePasswordToken.java +++ b/src/main/java/com/rymcu/vertical/config/UsernamePasswordToken.java @@ -2,6 +2,7 @@ package com.rymcu.vertical.config; /** * 用户和密码(包含验证码)令牌类 + * @author ronger */ public class UsernamePasswordToken extends org.apache.shiro.authc.UsernamePasswordToken { diff --git a/src/main/java/com/rymcu/vertical/core/service/dynProps4Files/DynProps4FilesService.java b/src/main/java/com/rymcu/vertical/core/service/dynProps4Files/DynProps4FilesService.java index 21ace24..a34e634 100644 --- a/src/main/java/com/rymcu/vertical/core/service/dynProps4Files/DynProps4FilesService.java +++ b/src/main/java/com/rymcu/vertical/core/service/dynProps4Files/DynProps4FilesService.java @@ -13,6 +13,7 @@ import java.util.concurrent.TimeUnit; /** * 动态配置文件,可以设置更新周期 * 配置读取读取服务 + * @author ronger */ @Component public class DynProps4FilesService {