Spring proprieties files and URLs

i am working with spring , (under maven and eclipse), i want to recover a value of variable (ex: id) from dynamic URL address and use it in file application.properties
can you tell me how to recover
i don’t want to work in java source class no
i want to use only application.properties, i am looking for a way to parameter my file to recover a value from an url, just inside application.properties.
I want to recover a value included in the API url and use it directly in ‘application.properties’ file can I use keycloak.policy.enforcer in this case and how?