Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
47ce3629
Commit
47ce3629
authored
Jun 16, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增定时任务服务及配置
parent
30e7be3d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
Common.java
.../com/yifu.cloud.plus.v1/yifu/common/core/util/Common.java
+1
-1
PermitAllUrlProperties.java
...ifu/common/security/component/PermitAllUrlProperties.java
+6
-0
No files found.
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/util/Common.java
View file @
47ce3629
...
...
@@ -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
;
...
...
yifu-common/yifu-common-security/src/main/java/com/yifu.cloud.plus.v1/yifu/common/security/component/PermitAllUrlProperties.java
View file @
47ce3629
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment