We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f4eb5b commit 48aa63fCopy full SHA for 48aa63f
spring-shell-autoconfigure/src/main/java/org/springframework/shell/boot/StandardAPIAutoConfiguration.java
@@ -16,6 +16,7 @@
16
17
package org.springframework.shell.boot;
18
19
+import org.springframework.boot.LazyInitializationExcludeFilter;
20
import org.springframework.context.annotation.Bean;
21
import org.springframework.context.annotation.Configuration;
22
import org.springframework.shell.MethodTargetRegistrar;
@@ -53,4 +54,9 @@ public ValueProvider fileValueProvider() {
53
54
public MethodTargetRegistrar standardMethodTargetResolver() {
55
return new StandardMethodTargetRegistrar();
56
}
57
+
58
+ @Bean
59
+ public static LazyInitializationExcludeFilter valueProviderLazyInitializationExcludeFilter(){
60
+ return LazyInitializationExcludeFilter.forBeanTypes(ValueProvider.class);
61
+ }
62
0 commit comments