Phillip Webb

Results 467 comments of Phillip Webb

See https://github.com/spring-projects/spring-boot/pull/12859 for more background

I did a bit of digging on this one and I think we'll perhaps need to revisit the fix for #12805 (solved by PR #12859 in Boot 1.5). Perhaps we...

@vpavic I don't think there really was an outcome from the team discussions. We probably flagged it to discuss how easy it would be to get it into a release,...

Also timing will be a bit tricky given that we're not expecting a Framework 5.4 release.

We discussed this today and we're considering adding a `bindMode` attribute to `@ConfigurationProperties` with values of `DEFAULT`, `JAVA_BEAN`, `VALUE_OBJECT` (names can be tweaked). If the attribute is set we'll take...

In the meantime, we would recommend not creating a bean for this purpose but instead use a `@PropertySource` on the test and rely on the real binding.

After some discussion we're going to repurpose this issue to ensure that immutable `@ConfigurationProperties` can be used with the upcoming Spring Framework [`@BeanOverride`](https://github.com/spring-projects/spring-framework/blob/main/spring-test/src/main/java/org/springframework/test/context/bean/override/BeanOverride.java) annotation. In the meantime, if using a...

@nhooey Do you have the sample from [your stackoverflow](https://stackoverflow.com/questions/56248954/spring-boot-datajpatest-causing-no-servletcontext-set-error/56248985) question available as something that we can download and run?

Reopening because we think there's a good use-case for this with annotation processors. See also [this comment](https://github.com/spring-projects/spring-boot/issues/22030#issuecomment-1010829636).

@mp911de do Andy's comments above make sense? Do you want us to raise an issue?