Reputation: 89
Can I create variables in application.conf and consume by application.conf? Basically I don't want to hard code it.
application.conf
I tried dominName = "test.com" and consume with $domainName but not working.
dominName = "test.com"
$domainName
Upvotes: 0
Views: 184
Reputation: 2404
You may need to use curly braces around the variable name: ${domainName}
${domainName}
You can find more example and information about HOCON on this page
Upvotes: 1