Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
6375f682
Commit
6375f682
authored
Dec 25, 2018
by
郑杰
Browse files
v1.1 版本发布,详细信息查看发行版说明
parent
4765785c
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/main/java/me/zhengjie/core/config/WebSecurityConfig.java
View file @
6375f682
...
@@ -77,7 +77,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
...
@@ -77,7 +77,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
.
authorizeRequests
()
.
authorizeRequests
()
.
antMatchers
(
"/auth/**"
).
permitAll
()
.
antMatchers
(
"/auth/**"
).
permitAll
()
.
antMatchers
(
"/websocket/**"
).
anonymous
()
.
antMatchers
(
"/websocket/**"
).
permitAll
()
.
antMatchers
(
"/druid/**"
).
anonymous
()
.
antMatchers
(
"/druid/**"
).
anonymous
()
// swagger start
// swagger start
...
...
src/main/java/me/zhengjie/core/security/JwtAuthorizationTokenFilter.java
View file @
6375f682
...
@@ -49,8 +49,6 @@ public class JwtAuthorizationTokenFilter extends OncePerRequestFilter {
...
@@ -49,8 +49,6 @@ public class JwtAuthorizationTokenFilter extends OncePerRequestFilter {
}
catch
(
ExpiredJwtException
e
)
{
}
catch
(
ExpiredJwtException
e
)
{
logger
.
error
(
e
.
getMessage
());
logger
.
error
(
e
.
getMessage
());
}
}
}
else
{
logger
.
warn
(
"couldn't find bearer string, will ignore the header"
);
}
}
logger
.
debug
(
"checking authentication for user '{}'"
,
username
);
logger
.
debug
(
"checking authentication for user '{}'"
,
username
);
...
...
src/main/java/me/zhengjie/system/domain/vo/MenuVo.java
View file @
6375f682
...
@@ -17,6 +17,8 @@ public class MenuVo {
...
@@ -17,6 +17,8 @@ public class MenuVo {
private
String
path
;
private
String
path
;
private
String
redirect
;
private
String
component
;
private
String
component
;
private
Boolean
alwaysShow
;
private
Boolean
alwaysShow
;
...
...
src/main/java/me/zhengjie/system/service/impl/MenuServiceImpl.java
View file @
6375f682
...
@@ -141,7 +141,7 @@ public class MenuServiceImpl implements MenuService {
...
@@ -141,7 +141,7 @@ public class MenuServiceImpl implements MenuService {
if
(
menuDTO
.
getPid
().
equals
(
0L
)){
if
(
menuDTO
.
getPid
().
equals
(
0L
)){
//一级目录需要加斜杠,不然访问不了
//一级目录需要加斜杠,不然访问不了
menuVo
.
setPath
(
"/"
+
menuDTO
.
getPath
());
menuVo
.
setPath
(
"/"
+
menuDTO
.
getPath
());
menuVo
.
set
Name
(
null
);
menuVo
.
set
Redirect
(
"noredirect"
);
}
}
menuVo
.
setComponent
(
StrUtil
.
isEmpty
(
menuDTO
.
getComponent
())?
"Layout"
:
menuDTO
.
getComponent
());
menuVo
.
setComponent
(
StrUtil
.
isEmpty
(
menuDTO
.
getComponent
())?
"Layout"
:
menuDTO
.
getComponent
());
}
}
...
...
Write
Preview
Supports
Markdown
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