最新代码
This commit is contained in:
@@ -40,6 +40,10 @@
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.yulichang</groupId>
|
||||
<artifactId>mybatis-plus-join-boot-starter</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.persistence</groupId>
|
||||
<artifactId>javax.persistence-api</artifactId>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.starry.common.filter;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.starry.common.utils.StringUtils;
|
||||
|
||||
import javax.servlet.*;
|
||||
@@ -32,11 +33,11 @@ public class XssFilter implements Filter {
|
||||
public void init(FilterConfig filterConfig) {
|
||||
String tempExcludes = filterConfig.getInitParameter("excludes");
|
||||
String tempEnabled = filterConfig.getInitParameter("enabled");
|
||||
if (StringUtils.isNotEmpty(tempExcludes)) {
|
||||
if (StrUtil.isNotBlank(tempExcludes)) {
|
||||
String[] url = tempExcludes.split(",");
|
||||
excludes.addAll(Arrays.asList(url));
|
||||
}
|
||||
if (StringUtils.isNotEmpty(tempEnabled)) {
|
||||
if (StrUtil.isNotBlank(tempEnabled)) {
|
||||
enabled = Boolean.parseBoolean(tempEnabled);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,8 @@ public enum ResultCodeEnum implements IBaseEnum {
|
||||
FAILED(500, "操作失败"),
|
||||
VALIDATE_FAILED(404, "参数检验失败"),
|
||||
UNAUTHORIZED(401, "无效的会话,或者会话已过期,请重新登录。"),
|
||||
FORBIDDEN(403, "没有相关权限");
|
||||
FORBIDDEN(403, "没有相关权限"),
|
||||
TENANT_NOT_FOUND(403, "租户不存在");
|
||||
|
||||
private final int code;
|
||||
private final String message;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.starry.common.utils;
|
||||
|
||||
/**
|
||||
* @author 杭州世平信息科技有限公司-xuhq
|
||||
* @author admin
|
||||
* @since 2024/4/9 13:53
|
||||
**/
|
||||
public class VerificationCodeUtils {
|
||||
|
||||
Reference in New Issue
Block a user