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/
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea9f29-47d6e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea9f29-47d6e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?