mirror of https://gitee.com/y_project/RuoYi.git
文件上传路径
parent
b6048e5429
commit
9d581bec25
|
@ -33,7 +33,7 @@ public class ResourcesConfig implements WebMvcConfigurer
|
||||||
public void addResourceHandlers(ResourceHandlerRegistry registry)
|
public void addResourceHandlers(ResourceHandlerRegistry registry)
|
||||||
{
|
{
|
||||||
/** 头像上传路径 */
|
/** 头像上传路径 */
|
||||||
registry.addResourceHandler("/profile/**").addResourceLocations("file:" + RuoYiConfig.getProfile() + "/");
|
registry.addResourceHandler("/profile/**").addResourceLocations("file:" + RuoYiConfig.getProfile());
|
||||||
|
|
||||||
/** swagger配置 */
|
/** swagger配置 */
|
||||||
registry.addResourceHandler("swagger-ui.html").addResourceLocations("classpath:/META-INF/resources/");
|
registry.addResourceHandler("swagger-ui.html").addResourceLocations("classpath:/META-INF/resources/");
|
||||||
|
|
|
@ -75,12 +75,12 @@ public class RuoYiConfig
|
||||||
|
|
||||||
public static String getAvatarPath()
|
public static String getAvatarPath()
|
||||||
{
|
{
|
||||||
return profile + "/avatar/";
|
return profile + "avatar/";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getDownloadPath()
|
public static String getDownloadPath()
|
||||||
{
|
{
|
||||||
return profile + "/download/";
|
return profile + "download/";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ ruoyi:
|
||||||
# 版权年份
|
# 版权年份
|
||||||
copyrightYear: 2018
|
copyrightYear: 2018
|
||||||
# 文件上传路径
|
# 文件上传路径
|
||||||
profile: D:/profile
|
profile: D:/profile/
|
||||||
# 获取ip地址开关
|
# 获取ip地址开关
|
||||||
addressEnabled: false
|
addressEnabled: false
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue