Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

516
Views
curly brace in spring boot default property value

In my application.yml for my spring boot application I have this property:

apiKey: ${SECRET_ADYEN_API_KEY:djhksy{f7dsadasb}

The problem is that the API key contains a forward curly brace, which messes up the parsing of the key in the app. It becomes ${SECRET_ADYEN_API_KEY:djhksy{f7dsadasb}, not simply djhksy{f7dsadasb which is the actual API key. How can I get around this? I tried escaping the { character with \ and \\ without luck.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Could you please try separating the default value (djhksy{f7dsadasb) to a different property just like below, It is working for me :

default-secret-key: djhksy{f7dsadasb
apiKey: ${SECRET_ADYEN_API_KEY:${default-secret-key}}
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!