In my classpath, there is a jar a.jar
with reference.conf
file in it. In the application, I read a config, let's say config.myConfig1
with value true
. I have another project in the classpath b.jar
with application.conf
file in it. I want to rewrite the original config.myConfig1
with false
.
I just placed the application.conf
in the jar with the hope that it will get rewritten but it didn't happen. The value defined in reference.conf
appeared in the application. What do I need to do in order to make it happen?
FYI, I read the config with play
:
class MyPlugin(app: Application) extends Plugin with Logging {
app.configuration.getStringList("config.myConfig1")
// ...
application.conf values should override reference.conf values; my guess is that there's just some small typo or equivalent keeping this from working.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.