Commit 47ce3629 authored by fangxinjiang's avatar fangxinjiang

新增定时任务服务及配置

parent 30e7be3d
......@@ -36,7 +36,7 @@ public class Common {
}
public static boolean isNotNull(String obj) {
if (null != obj || !"".equals(obj) || !"undefined".equals(obj)){
if (null != obj && !"".equals(obj) && !"undefined".equals(obj)){
return true;
}
return false;
......
......@@ -17,6 +17,7 @@
package com.yifu.cloud.plus.v1.yifu.common.security.component;
import cn.hutool.core.util.ReUtil;
import com.yifu.cloud.plus.v1.yifu.common.core.util.Common;
import com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner;
import lombok.Getter;
import lombok.Setter;
......@@ -76,6 +77,11 @@ public class PermitAllUrlProperties implements InitializingBean, ApplicationCont
Optional.ofNullable(controller).ifPresent(inner -> info.getPatternsCondition().getPatterns()
.forEach(url -> urls.add(ReUtil.replaceAll(url.toString(), PATTERN, "*"))));
});
if (Common.isNotNull(urls)){
for (String url:urls){
log.info(url.toString());
}
}
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment