File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
spring-boot-project/spring-boot/src/main
java/org/springframework/boot
resources/META-INF/spring Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 33
33
import org .apache .commons .logging .LogFactory ;
34
34
35
35
import org .springframework .aot .AotDetector ;
36
+ import org .springframework .aot .hint .RuntimeHints ;
37
+ import org .springframework .aot .hint .RuntimeHintsRegistrar ;
36
38
import org .springframework .beans .BeansException ;
37
39
import org .springframework .beans .CachedIntrospectionResults ;
38
40
import org .springframework .beans .factory .config .BeanDefinition ;
45
47
import org .springframework .beans .factory .support .DefaultListableBeanFactory ;
46
48
import org .springframework .beans .factory .xml .XmlBeanDefinitionReader ;
47
49
import org .springframework .boot .Banner .Mode ;
50
+ import org .springframework .boot .context .properties .ConfigurationPropertiesReflectionHintsRegistrar ;
48
51
import org .springframework .boot .context .properties .bind .Bindable ;
49
52
import org .springframework .boot .context .properties .bind .Binder ;
50
53
import org .springframework .boot .context .properties .source .ConfigurationPropertySources ;
@@ -1390,4 +1393,14 @@ public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
1390
1393
1391
1394
}
1392
1395
1396
+ static class SpringApplicationRuntimeHints implements RuntimeHintsRegistrar {
1397
+
1398
+ @ Override
1399
+ public void registerHints (RuntimeHints hints , ClassLoader classLoader ) {
1400
+ ConfigurationPropertiesReflectionHintsRegistrar .processConfigurationProperties (SpringApplication .class ,
1401
+ hints .reflection ());
1402
+ }
1403
+
1404
+ }
1405
+
1393
1406
}
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ org.springframework.boot.env.PropertySourceRuntimeHints,\
4
4
org.springframework.boot.json.JacksonRuntimeHints,\
5
5
org.springframework.boot.logging.java.JavaLoggingSystemRuntimeHints,\
6
6
org.springframework.boot.logging.logback.LogbackRuntimeHints,\
7
+ org.springframework.boot.SpringApplication.SpringApplicationRuntimeHints,\
7
8
org.springframework.boot.WebApplicationType.WebApplicationTypeRuntimeHints
8
9
9
10
org.springframework.beans.factory.aot.BeanFactoryInitializationAotProcessor=\
You can’t perform that action at this time.
0 commit comments