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
d1867aa3
Commit
d1867aa3
authored
Jun 09, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
@inner 放行 bug修复
parent
f2163871
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
HttpDaprUtil.java
...ifu/cloud/plus/v1/yifu/common/dapr/util/HttpDaprUtil.java
+1
-0
PermitAllUrlProperties.java
...ifu/common/security/component/PermitAllUrlProperties.java
+4
-4
No files found.
yifu-common/yifu-common-dapr/src/main/java/com/yifu/cloud/plus/v1/yifu/common/dapr/util/HttpDaprUtil.java
View file @
d1867aa3
...
@@ -77,6 +77,7 @@ public class HttpDaprUtil {
...
@@ -77,6 +77,7 @@ public class HttpDaprUtil {
try
{
try
{
res
=
restTemplate
.
postForEntity
(
URI
.
create
(
stringBuffer
.
toString
()),
entity
,
cs
);
res
=
restTemplate
.
postForEntity
(
URI
.
create
(
stringBuffer
.
toString
()),
entity
,
cs
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"日志保存异常:"
,
e
);
return
R
.
failed
(
"获取信息失败:"
+
e
.
getMessage
());
return
R
.
failed
(
"获取信息失败:"
+
e
.
getMessage
());
}
}
if
(
null
!=
res
&&
CommonConstants
.
SUCCESS
==
res
.
getStatusCodeValue
())
{
if
(
null
!=
res
&&
CommonConstants
.
SUCCESS
==
res
.
getStatusCodeValue
())
{
...
...
yifu-common/yifu-common-security/src/main/java/com/yifu.cloud.plus.v1/yifu/common/security/component/PermitAllUrlProperties.java
View file @
d1867aa3
...
@@ -65,15 +65,15 @@ public class PermitAllUrlProperties implements InitializingBean, ApplicationCont
...
@@ -65,15 +65,15 @@ public class PermitAllUrlProperties implements InitializingBean, ApplicationCont
// 获取方法上边的注解 替代path variable 为 *
// 获取方法上边的注解 替代path variable 为 *
Inner
method
=
AnnotationUtils
.
findAnnotation
(
handlerMethod
.
getMethod
(),
Inner
.
class
);
Inner
method
=
AnnotationUtils
.
findAnnotation
(
handlerMethod
.
getMethod
(),
Inner
.
class
);
if
(
null
!=
method
&&
null
!=
info
.
getPat
hPat
ternsCondition
()){
if
(
null
!=
method
&&
null
!=
info
.
getPatternsCondition
()){
Optional
.
ofNullable
(
method
).
ifPresent
(
inner
->
info
.
getPat
hPat
ternsCondition
().
getPatterns
()
Optional
.
ofNullable
(
method
).
ifPresent
(
inner
->
info
.
getPatternsCondition
().
getPatterns
()
.
forEach
(
url
->
urls
.
add
(
ReUtil
.
replaceAll
(
url
.
toString
(),
PATTERN
,
"*"
))));
.
forEach
(
url
->
urls
.
add
(
ReUtil
.
replaceAll
(
url
.
toString
(),
PATTERN
,
"*"
))));
}
}
// 获取类上边的注解, 替代path variable 为 *
// 获取类上边的注解, 替代path variable 为 *
Inner
controller
=
AnnotationUtils
.
findAnnotation
(
handlerMethod
.
getBeanType
(),
Inner
.
class
);
Inner
controller
=
AnnotationUtils
.
findAnnotation
(
handlerMethod
.
getBeanType
(),
Inner
.
class
);
if
(
null
!=
controller
&&
null
!=
info
.
getPat
hPat
ternsCondition
())
if
(
null
!=
controller
&&
null
!=
info
.
getPatternsCondition
())
Optional
.
ofNullable
(
controller
).
ifPresent
(
inner
->
info
.
getPat
hPat
ternsCondition
().
getPatterns
()
Optional
.
ofNullable
(
controller
).
ifPresent
(
inner
->
info
.
getPatternsCondition
().
getPatterns
()
.
forEach
(
url
->
urls
.
add
(
ReUtil
.
replaceAll
(
url
.
toString
(),
PATTERN
,
"*"
))));
.
forEach
(
url
->
urls
.
add
(
ReUtil
.
replaceAll
(
url
.
toString
(),
PATTERN
,
"*"
))));
});
});
}
}
...
...
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