You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
app {
include required(file("1.conf"))
include required(file("2.conf"))
}
When I load the file a/b/c/app.conf via:
ConfigFactory.parseFile("a/b/c/app.conf")
This results in the below exception:
Caused by: com.typesafe.config.ConfigException$IO: 1.conf: java.io.FileNotFoundException: 1.conf (No such file or directory)
at com.typesafe.config.impl.Parseable.parseValue(Parseable.java:188)
at com.typesafe.config.impl.Parseable.parseValue(Parseable.java:174)
at com.typesafe.config.impl.Parseable.parse(Parseable.java:152)
It works if I mention the path as required(file(a/b/c/1.conf)) inside app.conf instead. What can I do so that the path is taken relatively.
The text was updated successfully, but these errors were encountered:
Here is my folder structure:
The contents of
app.conf
is:When I load the file
a/b/c/app.conf
via:This results in the below exception:
It works if I mention the path as
required(file(a/b/c/1.conf))
insideapp.conf
instead. What can I do so that the path is taken relatively.The text was updated successfully, but these errors were encountered: