上述配置方式在部署jar包时 如果想要data文件夹在正确的位置 则必须切换到data/文件夹所在的目录 运行项目 这样项目才有正确的working directory
Created
April 18, 2018 05:48
-
-
Save HViktorTsoi/438a09b3991cb6693e2a6d4e49709de7 to your computer and use it in GitHub Desktop.
SpringBoot部署
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 文件夹结构设计 | |
# 数据文件夹的顶层为data文件,之后,根据用途细分,例如temp, user | |
web-path: | |
upload-dir: '/var/www/CancerDiagnose/' | |
temp-file-dir: "data/temp/" | |
user-data-dir: "data/user/" | |
# 在用户文件夹中,按照用户id进行细分,然后,每个id夹有具体的功能细分文件夹,例如"data/user/1/patientAvator" | |
user-data: | |
patient-avatar: "patientAvatar/" | |
patient-xray: "xray/" | |
server: | |
port: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment