按规范修正代码
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ public class MybatisGeneratorExtendMojo extends AbstractMojo {
|
||||
}
|
||||
//加载插件所需要的配置文件
|
||||
new PropertiesUtil().loadProperties(projectPath);
|
||||
MybatisGeneratorExtend.GenerateMybatisGeneratorNeedFilesByTemplates(projectPath);
|
||||
MybatisGeneratorExtend.generateMybatisGeneratorNeedFilesByTemplates(projectPath);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@ public class MybatisGeneratorExtend {
|
||||
/**
|
||||
* 根据模板引擎生成mybatis-generator需要的文件
|
||||
*/
|
||||
public static void GenerateMybatisGeneratorNeedFilesByTemplates(String projectPath) {
|
||||
public static void generateMybatisGeneratorNeedFilesByTemplates(String projectPath) {
|
||||
Connection jdbcConection = JdbcConnection.getJdbcConection();
|
||||
Statement statement = null;
|
||||
ResultSet resultSet = null;
|
||||
|
||||
+4
-1
@@ -29,6 +29,9 @@ public class BrowserSecurityController {
|
||||
private SecurityProperties securityProperties;
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(BrowserSecurityController.class);
|
||||
|
||||
private static final String REQUEST_URL_SUFFIX = ".html";
|
||||
|
||||
/**
|
||||
* 用于获取引发身份认证的请求缓存
|
||||
*/
|
||||
@@ -47,7 +50,7 @@ public class BrowserSecurityController {
|
||||
if (StringUtils.isNotBlank(redirectUrl)){
|
||||
log.info("引发跳转的请求是:{}",redirectUrl);
|
||||
//如果是由于访问页面触发的权限认证就重定向到登录页面
|
||||
if (StringUtils.endsWithIgnoreCase(redirectUrl,".html")){
|
||||
if (StringUtils.endsWithIgnoreCase(redirectUrl,REQUEST_URL_SUFFIX)){
|
||||
//进行请求的重定向重定向到用户定义登录页面
|
||||
redirectStrategy.sendRedirect(request,response,securityProperties.getBrowser().getHtml());
|
||||
}
|
||||
|
||||
+8
-2
@@ -4,6 +4,12 @@ package com.micro.fast.security.core.browser.constant;
|
||||
* 用户进行身份认证后返回的类型
|
||||
*/
|
||||
public enum LoginType {
|
||||
REDIRECT //以页面的形式返回身份认证结果,如果成功的话就返回触发身份认证的页面,如果失败的就返回错误页面
|
||||
,JSON; //以json形式返回结果
|
||||
/**
|
||||
* 以页面的形式返回身份认证结果,如果成功的话就返回触发身份认证的页面,如果失败的就返回错误页面
|
||||
*/
|
||||
REDIRECT
|
||||
/**
|
||||
* 以json形式返回结果
|
||||
*/
|
||||
,JSON;
|
||||
}
|
||||
|
||||
+1
-1
@@ -24,10 +24,10 @@ import java.util.Set;
|
||||
|
||||
/**
|
||||
* 图片验证码校验过滤器
|
||||
* @author LSY
|
||||
*/
|
||||
public class ValidateCodeFilter extends OncePerRequestFilter implements InitializingBean{
|
||||
|
||||
|
||||
private AuthenticationFailureHandler authenticationFailureHandler;
|
||||
/**
|
||||
* session操作工具类
|
||||
|
||||
Reference in New Issue
Block a user