0

I need to include java properties file to my application.conf file. This properties file contains special (to hocon) characters like '*' or ':' in properties values. So I get a run-time error when application starts and tries to load configuration.

Is there a way to include properties file in hocon file with escaping this special characters? I cannot modify this property file.

Alexander Camperov
  • 393
  • 2
  • 5
  • 11

1 Answers1

0

Use double-quotes.

eg:

db.default.url="jdbc:mysql://localhost/test"
Johny T Koshy
  • 3,857
  • 2
  • 23
  • 40