文件上传路径
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user