문제

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 possible to provide the config file as a parameter to the jar ? for example

java -DmyconfigFile=/dir/dir/reference.conf -jar myjar package.class.myobject.
도움이 되었습니까?

해결책

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.
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top