'disribution package of my app will not contain /src folder

I'm working on my localhost on spring boot app, where I use references of some files. For example :

"src/main/resources/myZip.zip"

As I know, in production distribution package of this app will not contain /src folder.

Can someone please tell me another way how can I get different references of this files for producton?

Also can someone suggest how can I create new file in resources?

I am using

Files.write(Path.of("src/main/resources/newFile.zip), fileContent, StandardCharsets.UTF_8);

to add new file, but I'm interested in how to create new file without

"src/main/resources"



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source