1.1 创建资源文件file-upload-dev.properties
#文件上传地址
file.imageUserFaceLocation=/workspaces/images/foodie/faces
#图片访问地址
file.imageServerUrl=http://localhost:8088/foodie/faces
1.2 创建spring组件获取资源文件类FileUpload
import org.springframework.boot.context.properties.ConfigurationProperties