Commit 9d581bec by RuoYi

文件上传路径

parent b6048e54
......@@ -33,7 +33,7 @@ public class ResourcesConfig implements WebMvcConfigurer
public void addResourceHandlers(ResourceHandlerRegistry registry)
{
/** 头像上传路径 */
registry.addResourceHandler("/profile/**").addResourceLocations("file:" + RuoYiConfig.getProfile() + "/");
registry.addResourceHandler("/profile/**").addResourceLocations("file:" + RuoYiConfig.getProfile());
/** swagger配置 */
registry.addResourceHandler("swagger-ui.html").addResourceLocations("classpath:/META-INF/resources/");
......
......@@ -75,12 +75,12 @@ public class RuoYiConfig
public static String getAvatarPath()
{
return profile + "/avatar/";
return profile + "avatar/";
}
public static String getDownloadPath()
{
return profile + "/download/";
return profile + "download/";
}
}
......@@ -7,7 +7,7 @@ ruoyi:
# 版权年份
copyrightYear: 2018
# 文件上传路径
profile: D:/profile
profile: D:/profile/
# 获取ip地址开关
addressEnabled: false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment