Add relaxed binding support to ChangeSpringPropertyKey
#552
Labels
enhancement
New feature or request
ChangeSpringPropertyKey
#552
What problem are you trying to solve?
Trying to migrate Spring properties set via relaxed binding environment variables during a Spring Boot upgrade migration.
Describe the solution you'd like
ChangeSpringPropertyValue
seems to support finding the items via relaxed bindings:rewrite-spring/src/main/java/org/openrewrite/java/spring/ChangeSpringPropertyValue.java
Line 69 in 196dc5f
I'd like to see this support in
ChangeSpringPropertyKey
as well (which seems to be absent atm).For example, in the Spring Boot 2.3 upgrade if I have an
application.properties
containingserver.use-forward-headers=true
it will currently migrate toserver.forward-headers-strategy=true
.However, if I have the environment variable equivalent,
SERVER_USEFORWARDHEADERS=true
, in a.env
file,docker-compose.yml
, etc it will not currently be migrated toSERVER_FORWARDHEADERSTRATEGY=true
The text was updated successfully, but these errors were encountered: