Contribute @PropertySource declarations in AOT optimized contexts #28976
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
theme: aot
An issue related to Ahead-of-time processing
type: enhancement
A general enhancement
Milestone
Overview
The underlying issue is that changes to the
Environment
are not present in an AOT optimizedApplicationContext
.For example, if a
@Configuration
class is annotated with@PropertySource
the property sources will not be applied to theEnvironment
when running theApplicationContext
in AOT mode.The same holds true for
@TestPropertySource
; however, I plan to take a different approach to honoring test property sources with AOT testing support.Related Issues
The text was updated successfully, but these errors were encountered: