Please tell me how to add the root directory of the current project in springboot in application. I will only add the absolute path now.

problem description

I want to configure the upload path of the file in springboot to the resources/static folder. How to configure a relative path

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)
upload.path=F:/images
spring.http.multipart.enabled=true-sharp supports file upload by default.
spring.http.multipart.file-size-threshold=0-sharp supports file writing to disk.
temporary directory of spring.http.multipart.location="F:/imageUpload/"-sharp uploaded files
spring.http.multipart.max-file-size=1Mb-sharp maximum supported file size
spring.http .multipart.max-request-size=10Mb-sharp maximum supported request size

what result do you expect? What is the error message actually seen?

Jul.16,2021

-sharp 
web:
  upload-path: ./xxx/src/main/resources/download/

-sharpspring
spring:
    resources: 
        static-locations: classpath:/static/,classpath:/views/
Menu