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 16
16
17
17
package org .springframework .shell .boot ;
18
18
19
+ import org .springframework .boot .LazyInitializationExcludeFilter ;
19
20
import org .springframework .context .annotation .Bean ;
20
21
import org .springframework .context .annotation .Configuration ;
21
22
import org .springframework .shell .MethodTargetRegistrar ;
@@ -53,4 +54,9 @@ public ValueProvider fileValueProvider() {
53
54
public MethodTargetRegistrar standardMethodTargetResolver () {
54
55
return new StandardMethodTargetRegistrar ();
55
56
}
57
+
58
+ @ Bean
59
+ public static LazyInitializationExcludeFilter valueProviderLazyInitializationExcludeFilter (){
60
+ return LazyInitializationExcludeFilter .forBeanTypes (ValueProvider .class );
61
+ }
56
62
}
You can’t perform that action at this time.
0 commit comments