Is String manipulation possible in YAML file??
The configuration file application.yml in a Spring Boot application is reading the version from the pom file as
<properties>
<revision>10.10.11</revision>
</properties>
The YAML file
logging:
file:
name: @revision@/app.log
The issue is, how to remove the dots from the revision value i.e.
"10.10.11" → “101011“
like
name: @revision@.replace('.', '')/app.log
, so that a log file can be generated on a folder without dots