This commit is contained in:
tangzh 2025-07-15 12:00:20 +08:00
parent ed61a1bf83
commit 1c901d71a0
2 changed files with 3 additions and 6 deletions

View File

@ -94,10 +94,6 @@ public class SpringSecurityConfig {
"/**/*.js",
"/webSocket/**"
).permitAll()
// 视频播放
// .antMatchers(
// "/api/front/flv/**",
// "/api/front/m3u8/**").permitAll()
// swagger 文档
.antMatchers("/swagger-ui.html").permitAll()
.antMatchers("/swagger-resources/**").permitAll()

View File

@ -84,9 +84,10 @@ public class TokenFilter extends GenericFilterBean {
if (StringUtils.hasText(bearerToken) && bearerToken.startsWith(properties.getTokenStartWith())) {
// 去掉令牌前缀
return bearerToken.replace(properties.getTokenStartWith(), "");
} else {
log.debug("非法Token{}", bearerToken);
}
// +else {
// + log.debug("非法Token{}", bearerToken);
// +}
return null;
}
}