how to pass configuration file to scala jar file

前端 未结 1 1307
自闭症患者
自闭症患者 2020-12-28 23:15

I am using the typesafe config library in my code and then I generate a jar file. The application works fine when I embed the reference.conf file inside the jar. But is it p

相关标签:
1条回答
  • 2020-12-29 00:11

    Yes it is. See this thread on using an external akka config here.

    java -Dconfig.file=/dir/dir/reference.conf -jar myjar package.class.myobject.
    
    0 讨论(0)
提交回复
热议问题