1 java.lang.IllegalStateException: Failed to load property source from location 'classpath:/bootstrap.yml'
 2     at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.loadIntoGroup(ConfigFileApplicationListener.java:476)
 3     at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:465)
 4     at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:386)
 5     at org.springframework.boot.context.config.ConfigFileApplicationListener.addPropertySources(ConfigFileApplicationListener.java:225)
 6     at org.springframework.boot.context.config.ConfigFileApplicationListener.postProcessEnvironment(ConfigFileApplicationListener.java:195)
 7     at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEnvironmentPreparedEvent(ConfigFileApplicationListener.java:182)
 8     at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEvent(ConfigFileApplicationListener.java:168)
 9     at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:167)
10     at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
11     at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:122)
12     at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:74)
13     at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)
14     at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:325)
15     at org.springframework.boot.SpringApplication.run(SpringApplication.java:296)
16     at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:134)
17     at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:175)
18     at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:98)
19     at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:64)
20     at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:167)
21     at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
22     at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:122)
23     at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:74)
24     at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)
25     at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:325)
26     at org.springframework.boot.SpringApplication.run(SpringApplication.java:296)
27     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)
28     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)
29     at com.hcfc.HcfcRiskMonitorSoaApplication.main(HcfcRiskMonitorSoaApplication.java:18)
30 Caused by: java.lang.NullPointerException: null
31     at org.springframework.core.BridgeMethodResolver.findBridgedMethod(BridgeMethodResolver.java:69)
32     at org.springframework.beans.GenericTypeAwarePropertyDescriptor.<init>(GenericTypeAwarePropertyDescriptor.java:71)
33     at org.springframework.beans.CachedIntrospectionResults.buildGenericTypeAwarePropertyDescriptor(CachedIntrospectionResults.java:366)
34     at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:302)
35     at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:189)
36     at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:173)
37     at org.springframework.beans.BeanWrapperImpl.getLocalPropertyHandler(BeanWrapperImpl.java:226)
38     at org.springframework.beans.BeanWrapperImpl.getLocalPropertyHandler(BeanWrapperImpl.java:63)
39     at org.springframework.beans.AbstractNestablePropertyAccessor.getPropertyHandler(AbstractNestablePropertyAccessor.java:739)
40     at org.springframework.beans.AbstractNestablePropertyAccessor.getPropertyType(AbstractNestablePropertyAccessor.java:499)
41     at org.springframework.boot.bind.RelaxedDataBinder.resolvePropertyName(RelaxedDataBinder.java:420)
42     at org.springframework.boot.bind.RelaxedDataBinder.getActualPropertyName(RelaxedDataBinder.java:384)
43     at org.springframework.boot.bind.RelaxedDataBinder.initializePath(RelaxedDataBinder.java:273)
44     at org.springframework.boot.bind.RelaxedDataBinder.normalizePath(RelaxedDataBinder.java:259)
45     at org.springframework.boot.bind.RelaxedDataBinder.modifyProperty(RelaxedDataBinder.java:240)
46     at org.springframework.boot.bind.RelaxedDataBinder.modifyProperties(RelaxedDataBinder.java:155)
47     at org.springframework.boot.bind.RelaxedDataBinder.doBind(RelaxedDataBinder.java:128)
48     at org.springframework.validation.DataBinder.bind(DataBinder.java:740)
49     at org.springframework.boot.yaml.SpringProfileDocumentMatcher.extractSpringProfiles(SpringProfileDocumentMatcher.java:92)
50     at org.springframework.boot.yaml.SpringProfileDocumentMatcher.matches(SpringProfileDocumentMatcher.java:71)
51     at org.springframework.beans.factory.config.YamlProcessor.process(YamlProcessor.java:235)
52     at org.springframework.beans.factory.config.YamlProcessor.process(YamlProcessor.java:161)
53     at org.springframework.beans.factory.config.YamlProcessor.process(YamlProcessor.java:138)
54     at org.springframework.boot.env.YamlPropertySourceLoader$Processor.process(YamlPropertySourceLoader.java:101)
55     at org.springframework.boot.env.YamlPropertySourceLoader.load(YamlPropertySourceLoader.java:58)
56     at org.springframework.boot.env.PropertySourcesLoader.load(PropertySourcesLoader.java:127)
57     at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.doLoadIntoGroup(ConfigFileApplicationListener.java:490)
58     at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.loadIntoGroup(ConfigFileApplicationListener.java:473)
59     ... 27 common frames omitted

加载bootstrap.yml 时,报空指针,问题尚未定位。