提交roll日创建
This commit is contained in:
@@ -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()
|
||||
// 业务接口
|
||||
|
||||
Reference in New Issue
Block a user