-
-
Notifications
You must be signed in to change notification settings - Fork 971
Start Up Performance - Explore disabling allow-bean-definition-overriding true by default #13827
Copy link
Copy link
Open
Milestone
Description
Feature description
Start Up Time Performance can be severely impacted by the following code:
I think best practice would be to disable this by default as it hides a lot of duplicate initialization happening behind the scenes with Spring Boot.
For instance, in certain situations I have found when setAllowBeanDefinitionOverriding(true) is on, Spring Boot AutoConfigurations are happening that perform various configurations that are later not even used and completely overridden by Grails. The more dependencies that Spring Boot detects in the class path, the greater this penalty can become.
We should explore disabling this by default as it can always be turned on independently via config if required by the end user:
spring.main.allow-bean-definition-overriding=trueor
spring:
main:
allow-bean-definition-overriding: trueReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Todo