Merge branch 'bgy' of SH-Arbitrate/Arbitrate-Backend into dev

This commit was merged in pull request #10.
This commit is contained in:
bgy
2023-09-18 20:47:08 +08:00
committed by Gitea
2 changed files with 4 additions and 2 deletions
@@ -32,7 +32,6 @@ server:
max: 800 max: 800
# Tomcat启动初始化的线程数,默认值10 # Tomcat启动初始化的线程数,默认值10
min-spare: 100 min-spare: 100
# 日志配置 # 日志配置
logging: logging:
level: level:
@@ -89,6 +88,9 @@ spring:
max-active: 8 max-active: 8
# #连接池最大阻塞等待时间(使用负值表示没有限制) # #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms max-wait: -1ms
web:
resources:
static-locations: file:/home/ruoyi/
# token配置 # token配置
token: token:
@@ -111,7 +111,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
// 过滤请求 // 过滤请求
.authorizeRequests() .authorizeRequests()
// 对于登录login 注册register 验证码captchaImage 允许匿名访问 // 对于登录login 注册register 验证码captchaImage 允许匿名访问
.antMatchers("/login", "/register", "/captchaImage","/home/**").permitAll() .antMatchers("/login", "/register", "/captchaImage","/uploadPath/**").permitAll()
// 静态资源,可匿名访问 // 静态资源,可匿名访问
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll() .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll() .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()