xiangpei
2024-04-18 49ee3dec1513991d5ff29db09be669a37885b59d
ycl-common/src/main/java/constant/Constants.java
@@ -4,7 +4,7 @@
/**
 * 通用常量信息
 *
 *
 * @author ruoyi
 */
public class Constants
@@ -152,16 +152,16 @@
    /**
     * 自动识别json对象白名单配置(仅允许解析的包名,范围越小越安全)
     */
    public static final String[] JSON_WHITELIST_STR = { "org.springframework", "com.ruoyi" };
    public static final String[] JSON_WHITELIST_STR = { "org.springframework", "com.ycl" };
    /**
     * 定时任务白名单配置(仅允许访问的包名,如其他需要可以自行添加)
     */
    public static final String[] JOB_WHITELIST_STR = { "com.ruoyi" };
    public static final String[] JOB_WHITELIST_STR = { "com.ycl" };
    /**
     * 定时任务违规的字符
     */
    public static final String[] JOB_ERROR_STR = { "java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml",
            "org.springframework", "org.apache", "com.ruoyi.common.utils.file", "com.ruoyi.common.config" };
            "org.springframework", "org.apache", "com.ycl.common.utils.file", "com.ycl.common.config" };
}