音频文件上传接口permit all

This commit is contained in:
1 2025-06-23 13:37:08 +08:00
parent 27f4e48181
commit 9c493a0df3
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ server:
spring:
# 环境配置dev=开发环境prod=生产环境
profiles:
active: dev # 环境配置dev=开发环境prod=生产环境
active: prod # 环境配置dev=开发环境prod=生产环境
# 资源信息
messages:
# 国际化资源文件路径

View File

@ -135,7 +135,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
.antMatchers("/dueros").permitAll()
//license 接口开放
.antMatchers("/license/**").permitAll()
// .antMatchers("/common/upload/audio").permitAll()
.antMatchers(HttpMethod.POST, "/common/upload/audio").permitAll()
// 除上面外的所有请求全部需要鉴权认证
.anyRequest().authenticated()