'How to add external properties file for custom beans to classpath?

I have a fat jar file that is launched from Spring Loader PropertiesLauncher.

Also, I have loader.properties file in which I indicated an external resource folder with JARs but also in folders, there are custom.properties files for initialization of some custom beans which are not loaded into the classpath.

How I can add the properties file in the classpath?



Solution 1:[1]

you have multiple options to do that. You can refer to this Link

Sources

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

Source: Stack Overflow

Solution Source
Solution 1 rg226965