no message

This commit is contained in:
wangjianhong
2025-07-25 09:25:32 +08:00
parent c29abb1b83
commit bca87e7b0d
2 changed files with 19 additions and 22 deletions

View File

@@ -28,7 +28,7 @@ public class JwtRequestFilter extends OncePerRequestFilter {
private final RedisTokenService redisTokenService;
@Override
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain)throws ServletException, IOException {
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws ServletException, IOException {
logRequestDetails(request);
@@ -62,7 +62,6 @@ public class JwtRequestFilter extends OncePerRequestFilter {
}
private String extractJwtFromRequest(HttpServletRequest request) {
String jwt = null;
@@ -85,8 +84,7 @@ public class JwtRequestFilter extends OncePerRequestFilter {
try {
return JwtUtils.extractUsername(jwt);
} catch (Exception e) {
logger.warn("Failed to extract username from token", e);
throw new RuntimeException("Failed to extract username from token");
throw new RuntimeException(e.getMessage());
}
}
@@ -117,7 +115,6 @@ public class JwtRequestFilter extends OncePerRequestFilter {
}
/**
* 封装的打印请求详情方法
*/

View File

@@ -45,7 +45,7 @@ spring:
name: authorization-server-standalone
data:
redis:
host: localhost
host: 127.0.0.1
port: 6379
password: yyds@8848
lettuce:
@@ -62,20 +62,20 @@ logging:
root: INFO
com.arrokoth: DEBUG
org.springdoc: INFO
org.springframework: DEBUG
org.springframework: INFO
#mybatis:
# type-aliases-package: com.arrokoth.**.domain
# mapper-locations: classpath*:com.arrokoth/**/mapper/xml/*.xml
# configuration:
# map-underscore-to-camel-case: true
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
#mybatis-plus:
# type-aliases-package: com.arrokoth.**.domain
# mapper-locations: classpath*:com.arrokoth/**/mapper/xml/*.xml
# global-config:
# banner: true
# enable-sql-runner: true
# configuration:
# map-underscore-to-camel-case: true
# check-config-location: true
mybatis:
type-aliases-package: com.arrokoth.**.domain
mapper-locations: classpath*:com.arrokoth/**/mapper/xml/*.xml
configuration:
map-underscore-to-camel-case: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
mybatis-plus:
type-aliases-package: com.arrokoth.**.domain
mapper-locations: classpath*:com.arrokoth/**/mapper/xml/*.xml
global-config:
banner: true
enable-sql-runner: true
configuration:
map-underscore-to-camel-case: true
check-config-location: true