项目适配瀚高
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package com.ltgk.smartFishingPort.framework.config;
|
||||
|
||||
import com.ltgk.smartFishingPort.common.config.RuoYiConfig;
|
||||
import com.ltgk.smartFishingPort.common.config.SmartFishingPortConfig;
|
||||
import com.ltgk.smartFishingPort.common.constant.Constants;
|
||||
import com.ltgk.smartFishingPort.framework.interceptor.RepeatSubmitInterceptor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -32,7 +32,7 @@ public class ResourcesConfig implements WebMvcConfigurer
|
||||
{
|
||||
/** 本地文件上传路径 */
|
||||
registry.addResourceHandler(Constants.RESOURCE_PREFIX + "/**")
|
||||
.addResourceLocations("file:" + RuoYiConfig.getProfile() + "/");
|
||||
.addResourceLocations("file:" + SmartFishingPortConfig.getProfile() + "/");
|
||||
|
||||
/** swagger配置 */
|
||||
registry.addResourceHandler("/swagger-ui/**")
|
||||
|
||||
@@ -114,7 +114,6 @@ public class SecurityConfig
|
||||
requests.antMatchers("/login", "/register", "/captchaImage").permitAll()
|
||||
// 静态资源,可匿名访问
|
||||
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
|
||||
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
|
||||
// 除上面外的所有请求全部需要鉴权认证
|
||||
.anyRequest().authenticated();
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user