提交roll日创建

This commit is contained in:
2026-07-14 19:38:41 +08:00
parent 01444937bd
commit 65c290c973
8 changed files with 87 additions and 9 deletions
@@ -39,6 +39,10 @@ public class ResourcesConfig implements WebMvcConfigurer
registry.addResourceHandler("/upload/**")
.addResourceLocations("file:" + RuoYiConfig.getProfile() + "/upload/");
/** 头像静态资源路径 */
registry.addResourceHandler("/avater/**")
.addResourceLocations("file:/www/static/avater/");
/** swagger配置 */
registry.addResourceHandler("/swagger-ui/**")
.addResourceLocations("classpath:/META-INF/resources/webjars/springfox-swagger-ui/")
@@ -87,7 +87,7 @@ public class SecurityConfig {
auth.requestMatchers("/login", "/register", "/captchaImage").permitAll()
// 静态资源
.requestMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html",
"/**/*.css", "/**/*.js", "/profile/**", "/uploads/**", "/upload/**").permitAll()
"/**/*.css", "/**/*.js", "/profile/**", "/uploads/**", "/upload/**", "/avater/**").permitAll()
// Swagger & Druid
.requestMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
// 业务接口