Offer compile time support for @Configuration
classes [SPR-15512]
#20071
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: duplicate
A duplicate of another issue
type: enhancement
A general enhancement
Phil Webb opened SPR-15512 and commented
During some discussion on the Spring Boot call about this issue we discussed the benefits of not needing to use CGLib for configuration classes.
A typical Spring Boot application will load 50-70 configurations and each one needs bytecode generation and increases the amount of memory used.
One option that Stephane suggested was to do the bytecode manipulation an compile time rather than runtime. We could possibly use an annotation processor to rewrite the methods and call some common SPI that both
ConfigurationClassEnhancer
and us could share.0 votes, 6 watchers
The text was updated successfully, but these errors were encountered: