File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
spring-shell-autoconfigure/src/main/java/org/springframework/shell/boot Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1616
1717package org .springframework .shell .boot ;
1818
19+ import org .springframework .boot .LazyInitializationExcludeFilter ;
1920import org .springframework .boot .autoconfigure .AutoConfiguration ;
2021import org .springframework .context .ApplicationContext ;
2122import org .springframework .context .annotation .Bean ;
@@ -56,4 +57,9 @@ public MethodTargetRegistrar standardMethodTargetResolver(ApplicationContext app
5657 CommandRegistration .BuilderSupplier builder ) {
5758 return new StandardMethodTargetRegistrar (applicationContext , builder );
5859 }
60+
61+ @ Bean
62+ public static LazyInitializationExcludeFilter valueProviderLazyInitializationExcludeFilter (){
63+ return LazyInitializationExcludeFilter .forBeanTypes (ValueProvider .class );
64+ }
5965}
You can’t perform that action at this time.
0 commit comments