Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
guns1.1
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
李庆科
guns1.1
Commits
a41c2ac9
Commit
a41c2ac9
authored
May 28, 2026
by
李庆科
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:sprongcloud 启动成功、注册成功
parent
22daa5b6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
TokenAndPermissionInterceptor.java
...eng/guns/core/security/TokenAndPermissionInterceptor.java
+5
-0
logback-spring.xml
guns-main-project/src/main/resources/logback-spring.xml
+2
-2
No files found.
guns-main-project/src/main/java/cn/stylefeng/guns/core/security/TokenAndPermissionInterceptor.java
View file @
a41c2ac9
...
...
@@ -42,6 +42,11 @@ public class TokenAndPermissionInterceptor implements HandlerInterceptor {
String
requestURI
=
request
.
getRequestURI
();
requestURI
=
requestURI
.
replaceAll
(
"/+"
,
"/"
);
// 自定义白名单:/api/** 路径不需要认证
if
(
requestURI
.
startsWith
(
"/api/"
))
{
requestURI
=
requestURI
.
substring
(
4
);
}
Boolean
noneSecurityFlag
=
AntPathMatcherUtil
.
getAntMatchFLag
(
requestURI
,
request
.
getContextPath
(),
AuthConfigExpander
.
getNoneSecurityConfig
());
if
(
noneSecurityFlag
)
{
...
...
guns-main-project/src/main/resources/logback-spring.xml
View file @
a41c2ac9
...
...
@@ -19,12 +19,12 @@
</appender>
<!--默认所有的包以info-->
<root
level=
"
info
"
>
<root
level=
"
debug
"
>
<appender-ref
ref=
"STDOUT"
/>
</root>
<!--本项目的日志级别-->
<logger
name=
"cn.stylefeng"
level=
"
info
"
additivity=
"false"
>
<logger
name=
"cn.stylefeng"
level=
"
debug
"
additivity=
"false"
>
<appender-ref
ref=
"STDOUT"
/>
</logger>
...
...
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