Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sample-form-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
sample-form-platform
Commits
d0574af9
Commit
d0574af9
authored
Apr 25, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加角色菜单权限新实现
parent
60a53b1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
sample-form-manager/src/main/java/com/mortals/xhx/common/utils/ControllerScanUtil.java
...java/com/mortals/xhx/common/utils/ControllerScanUtil.java
+4
-3
No files found.
sample-form-manager/src/main/java/com/mortals/xhx/common/utils/ControllerScanUtil.java
View file @
d0574af9
...
@@ -53,10 +53,11 @@ public class ControllerScanUtil {
...
@@ -53,10 +53,11 @@ public class ControllerScanUtil {
String
result
=
""
;
String
result
=
""
;
try
{
try
{
substringMethod
=
cls
.
getMethod
(
"getModuleDesc"
);
substringMethod
=
cls
.
getMethod
(
"getModuleDesc"
);
result
=
(
String
)
substringMethod
.
invoke
(
cls
.
getDeclaredConstructor
().
newInstance
());
if
(!
ObjectUtils
.
isEmpty
(
substringMethod
)){
result
=
(
String
)
substringMethod
.
invoke
(
cls
.
getDeclaredConstructor
().
newInstance
());
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"反射获取controller类异常"
,
e
);
log
.
error
(
"反射获取controller类异常"
,
e
.
getMessage
()
);
}
}
//获取基础路径
//获取基础路径
RequestMapping
requestMappingCls
=
cls
.
getAnnotation
(
RequestMapping
.
class
);
RequestMapping
requestMappingCls
=
cls
.
getAnnotation
(
RequestMapping
.
class
);
...
...
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