Spring boot Spring引导属性文件访问放置在类路径中的文件

Spring boot Spring引导属性文件访问放置在类路径中的文件,spring-boot,properties-file,bootclasspath,Spring Boot,Properties File,Bootclasspath,我有3个文件存储在src/main/resources/abcd文件夹中;它们是a.txt、b.pdf和c.txt。 我想在属性文件中提到这些文件。 如何写入属性文件以包含它们的条目 是不是有点像: rs.file1 = classpath:/abcd/a.txt rs.file2 = classpath:/abcd/b.pdf rs.file3 = classpath:/abcd/c.txt

我有3个文件存储在src/main/resources/abcd文件夹中;它们是a.txt、b.pdf和c.txt。 我想在属性文件中提到这些文件。 如何写入属性文件以包含它们的条目

是不是有点像:

rs.file1 = classpath:/abcd/a.txt
rs.file2 = classpath:/abcd/b.pdf
rs.file3 = classpath:/abcd/c.txt