Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fgqyxxlr
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yaru
fgqyxxlr
Commits
9d581bec
Commit
9d581bec
authored
Sep 18, 2018
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文件上传路径
parent
b6048e54
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
src/main/java/com/ruoyi/framework/config/ResourcesConfig.java
+1
-1
src/main/java/com/ruoyi/framework/config/RuoYiConfig.java
+2
-2
src/main/resources/application.yml
+1
-1
No files found.
src/main/java/com/ruoyi/framework/config/ResourcesConfig.java
View file @
9d581bec
...
@@ -33,7 +33,7 @@ public class ResourcesConfig implements WebMvcConfigurer
...
@@ -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/"
);
...
...
src/main/java/com/ruoyi/framework/config/RuoYiConfig.java
View file @
9d581bec
...
@@ -75,12 +75,12 @@ public class RuoYiConfig
...
@@ -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/"
;
}
}
}
}
src/main/resources/application.yml
View file @
9d581bec
...
@@ -7,7 +7,7 @@ ruoyi:
...
@@ -7,7 +7,7 @@ ruoyi:
# 版权年份
# 版权年份
copyrightYear
:
2018
copyrightYear
:
2018
# 文件上传路径
# 文件上传路径
profile
:
D:/profile
profile
:
D:/profile
/
# 获取ip地址开关
# 获取ip地址开关
addressEnabled
:
false
addressEnabled
:
false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment