SpringBoot配置本地文件访问路径 环境:SpringBoot 2.+ application.properties配置 # 外部文件访问 file:服务器文件路径 spring.resources.static-locations=file:C:\\Users\\Desktop\\folder 访问 127.0.0.1:8080/projectName/fileName