Skip to content

Use @Configuration(proxyBeanMethods=false) wherever possible #9068

Closed
@philwebb

Description

@philwebb

Almost all of our auto-configuration classes are currently annotated with @Configuration. The means that the ConfigurationClassPostProcessor will treat them as full configuration classes and create cglib proxies.

This is potentially quite an expensive operation and is unnecessary for most of them. As long as we use parameter injection (and don't call other methods directly) we can use the @Component annotation instead to create ConfigurationClassUtils.CONFIGURATION_CLASS_LITE configuration.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions