Closed
Description
Affects: 6.0
The failure described in spring-projects/spring-boot#37637 occurs because there's a bean property value that is an instance of MultipartConfigElement
. The code generation that runs during AOT processing doesn't know how to handle such a value and it fails. This can be addressed by using an inner-bean to describe the multipart config but, as discussed with @snicoll, it would be nicer if this wasn't necessary.
This could perhaps be achieved by allowing custom org.springframework.beans.factory.aot.BeanDefinitionPropertyValueCodeGenerator.Delegate
or similar implementations to be plugged in through aot.factories
or some other mechanism.