08-02-2023, 04:31 PM
I want to set `hibernate.format_sql` in a Spring Boot app. I want to set it using environment variables.
Spring Boot rather handily converts all environment variables from, for example, `FOO_BAR_BAZ` to properties called `foo.bar.baz` inside the Spring context.
How can I set a property that has an underscore in the target name, in Spring Boot, using environment variables? Presumably `HIBERNATE_FORMAT_SQL` will be translated to `hibernate.format.sql`?
Spring Boot rather handily converts all environment variables from, for example, `FOO_BAR_BAZ` to properties called `foo.bar.baz` inside the Spring context.
How can I set a property that has an underscore in the target name, in Spring Boot, using environment variables? Presumably `HIBERNATE_FORMAT_SQL` will be translated to `hibernate.format.sql`?