📝 完善 javadoc
This commit is contained in:
parent
7265554608
commit
a29959fbd1
@ -19,10 +19,11 @@ import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @author ronger
|
||||
* Shiro静态资源配置
|
||||
* */
|
||||
public class BaseShiroFilterFactoryBean extends ShiroFilterFactoryBean {
|
||||
// 对ShiroFilter来说,需要直接忽略的请求
|
||||
|
||||
private Set<String> ignoreExt;
|
||||
|
||||
public BaseShiroFilterFactoryBean() {
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
||||
|
@ -2,6 +2,7 @@ package com.rymcu.vertical.config;
|
||||
|
||||
/**
|
||||
* 用户和密码(包含验证码)令牌类
|
||||
* @author ronger
|
||||
*/
|
||||
public class UsernamePasswordToken extends org.apache.shiro.authc.UsernamePasswordToken {
|
||||
|
||||
|
@ -13,6 +13,7 @@ import java.util.concurrent.TimeUnit;
|
||||
/**
|
||||
* 动态配置文件,可以设置更新周期
|
||||
* 配置读取读取服务
|
||||
* @author ronger
|
||||
*/
|
||||
@Component
|
||||
public class DynProps4FilesService {
|
||||
|
Loading…
Reference in New Issue
Block a user