For context see https://github.com/spring-projects/spring-boot/issues/31603

Basically, I want to be able to do this

    @Component
    public record Test(@Value("${username}") String user) {}

right now that code fails, even tho the bean is created with the right value, because the AutowiredAnnotationBeanPostProcessor attempts to populate the record via field injection (even tho the values have already been set).

Comment From: wine-area

can i try this issues

Comment From: sbrannen

  • Superseded by #28774