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 .context .annotation .Bean ;
2021import org .springframework .context .annotation .Configuration ;
2122import org .springframework .shell .MethodTargetRegistrar ;
@@ -53,4 +54,9 @@ public ValueProvider fileValueProvider() {
5354 public MethodTargetRegistrar standardMethodTargetResolver () {
5455 return new StandardMethodTargetRegistrar ();
5556 }
57+
58+ @ Bean
59+ public static LazyInitializationExcludeFilter valueProviderLazyInitializationExcludeFilter (){
60+ return LazyInitializationExcludeFilter .forBeanTypes (ValueProvider .class );
61+ }
5662}
You can’t perform that action at this time.
0 commit comments