Complex Spring Placeholder Resolution

Forketyfork
3 min readMar 26, 2020
Image by Karsten Paulick from Pixabay

I had a complicated case for Spring Boot properties configuration today that I’d like to share.

My project uses Atomikos for XA transaction management. Atomikos needs to store its transaction logs somewhere, and there’s a special Spring Boot property spring.jta.log-dir that configures the directory to use for these logs. The property is configured in the application.yml file.

--

--

Forketyfork

Software developer @ JetBrains Space. I write technical how-to articles and occasional rants on software development in general. Opinions are my own.