. ____ _ __ _ _
/\ / ’ __ _ () __ __ _ \ \ \
( ( )__ | '_ | '| | ’ / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
’ || .__|| ||| |__, | / / / /
=|_|======|/=////
:: Spring Boot :: (v1.5.2.RELEASE)
2019-03-01 08:01:10.601 INFO 11500 — [ main] xp.com.EurekaServerApp : Starting EurekaServerApp on LAPTOP-FMMKU76A with PID 11500 (D:\myEclips2014Demo\ssh\SpringCould_eureka\target\classes started by lenovo in D:\myEclips2014Demo\ssh\SpringCould_eureka)
2019-03-01 08:01:10.603 INFO 11500 — [ main] xp.com.EurekaServerApp : No active profile set, falling back to default profiles: default
2019-03-01 08:01:10.662 INFO 11500 — [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@4bad4a49: startup date [Fri Mar 01 08:01:10 CST 2019]; root of context hierarchy
2019-03-01 08:01:11.231 ERROR 11500 — [ main] o.s.boot.SpringApplication : Application startup failed
java.lang.IllegalStateException: Error processing condition on org.springframework.cloud.netflix.eureka.server.EurekaServerAutoConfiguration
E
u
r
e
k
a
S
e
r
v
e
r
C
o
n
f
i
g
B
e
a
n
C
o
n
f
i
g
u
r
a
t
i
o
n
.
e
u
r
e
k
a
S
e
r
v
e
r
C
o
n
f
i
g
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
c
o
n
d
i
t
i
o
n
.
S
p
r
i
n
g
B
o
o
t
C
o
n
d
i
t
i
o
n
.
m
a
t
c
h
e
s
(
S
p
r
i
n
g
B
o
o
t
C
o
n
d
i
t
i
o
n
.
j
a
v
a
:
64
)
[
s
p
r
i
n
g
−
b
o
o
t
−
a
u
t
o
c
o
n
f
i
g
u
r
e
−
1.5.2.
R
E
L
E
A
S
E
.
j
a
r
:
1.5.2.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
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a
t
x
p
.
c
o
m
.
E
u
r
e
k
a
S
e
r
v
e
r
A
p
p
.
m
a
i
n
(
E
u
r
e
k
a
S
e
r
v
e
r
A
p
p
.
j
a
v
a
:
12
)
[
c
l
a
s
s
e
s
/
:
n
a
]
C
a
u
s
e
d
b
y
:
j
a
v
a
.
l
a
n
g
.
I
l
l
e
g
a
l
S
t
a
t
e
E
x
c
e
p
t
i
o
n
:
@
C
o
n
d
i
t
i
o
n
a
l
O
n
M
i
s
s
i
n
g
B
e
a
n
d
i
d
n
o
t
s
p
e
c
i
f
y
a
b
e
a
n
u
s
i
n
g
t
y
p
e
,
n
a
m
e
o
r
a
n
n
o
t
a
t
i
o
n
a
n
d
t
h
e
a
t
t
e
m
p
t
t
o
d
e
d
u
c
e
t
h
e
b
e
a
n
′
s
t
y
p
e
f
a
i
l
e
d
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
c
o
n
d
i
t
i
o
n
.
O
n
B
e
a
n
C
o
n
d
i
t
i
o
n
EurekaServerConfigBeanConfiguration.eurekaServerConfig at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:64) ~[spring-boot-autoconfigure-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:102) ~[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForBeanMethod(ConfigurationClassBeanDefinitionReader.java:178) ~[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:140) ~[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions(ConfigurationClassBeanDefinitionReader.java:116) ~[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:320) ~[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:228) ~[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:270) ~[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:93) ~[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:686) ~[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:524) ~[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:370) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:314) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1162) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1151) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE] at xp.com.EurekaServerApp.main(EurekaServerApp.java:12) [classes/:na] Caused by: java.lang.IllegalStateException: @ConditionalOnMissingBean did not specify a bean using type, name or annotation and the attempt to deduce the bean's type failed at org.springframework.boot.autoconfigure.condition.OnBeanCondition
EurekaServerConfigBeanConfiguration.eurekaServerConfigatorg.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:64) [spring−boot−autoconfigure−1.5.2.RELEASE.jar:1.5.2.RELEASE]atorg.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:102) [spring−context−4.3.7.RELEASE.jar:4.3.7.RELEASE]atorg.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForBeanMethod(ConfigurationClassBeanDefinitionReader.java:178) [spring−context−4.3.7.RELEASE.jar:4.3.7.RELEASE]atorg.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:140) [spring−context−4.3.7.RELEASE.jar:4.3.7.RELEASE]atorg.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions(ConfigurationClassBeanDefinitionReader.java:116) [spring−context−4.3.7.RELEASE.jar:4.3.7.RELEASE]atorg.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:320) [spring−context−4.3.7.RELEASE.jar:4.3.7.RELEASE]atorg.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:228) [spring−context−4.3.7.RELEASE.jar:4.3.7.RELEASE]atorg.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:270) [spring−context−4.3.7.RELEASE.jar:4.3.7.RELEASE]atorg.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:93) [spring−context−4.3.7.RELEASE.jar:4.3.7.RELEASE]atorg.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:686) [spring−context−4.3.7.RELEASE.jar:4.3.7.RELEASE]atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:524) [spring−context−4.3.7.RELEASE.jar:4.3.7.RELEASE]atorg.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) [spring−boot−1.5.2.RELEASE.jar:1.5.2.RELEASE]atorg.springframework.boot.SpringApplication.refresh(SpringApplication.java:737)[spring−boot−1.5.2.RELEASE.jar:1.5.2.RELEASE]atorg.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:370)[spring−boot−1.5.2.RELEASE.jar:1.5.2.RELEASE]atorg.springframework.boot.SpringApplication.run(SpringApplication.java:314)[spring−boot−1.5.2.RELEASE.jar:1.5.2.RELEASE]atorg.springframework.boot.SpringApplication.run(SpringApplication.java:1162)[spring−boot−1.5.2.RELEASE.jar:1.5.2.RELEASE]atorg.springframework.boot.SpringApplication.run(SpringApplication.java:1151)[spring−boot−1.5.2.RELEASE.jar:1.5.2.RELEASE]atxp.com.EurekaServerApp.main(EurekaServerApp.java:12)[classes/:na]Causedby:java.lang.IllegalStateException:@ConditionalOnMissingBeandidnotspecifyabeanusingtype,nameorannotationandtheattempttodeducethebean′stypefailedatorg.springframework.boot.autoconfigure.condition.OnBeanConditionBeanSearchSpec.validate(OnBeanCondition.java:309) ~[spring-boot-autoconfigure-1.5.2.RELEASE.jar:1.5.2.RELEASE]
at org.springframework.boot.autoconfigure.condition.OnBeanCondition
B
e
a
n
S
e
a
r
c
h
S
p
e
c
.
<
i
n
i
t
>
(
O
n
B
e
a
n
C
o
n
d
i
t
i
o
n
.
j
a
v
a
:
299
)
[
s
p
r
i
n
g
−
b
o
o
t
−
a
u
t
o
c
o
n
f
i
g
u
r
e
−
1.5.2.
R
E
L
E
A
S
E
.
j
a
r
:
1.5.2.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
c
o
n
d
i
t
i
o
n
.
O
n
B
e
a
n
C
o
n
d
i
t
i
o
n
.
g
e
t
M
a
t
c
h
O
u
t
c
o
m
e
(
O
n
B
e
a
n
C
o
n
d
i
t
i
o
n
.
j
a
v
a
:
108
)
[
s
p
r
i
n
g
−
b
o
o
t
−
a
u
t
o
c
o
n
f
i
g
u
r
e
−
1.5.2.
R
E
L
E
A
S
E
.
j
a
r
:
1.5.2.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
c
o
n
d
i
t
i
o
n
.
S
p
r
i
n
g
B
o
o
t
C
o
n
d
i
t
i
o
n
.
m
a
t
c
h
e
s
(
S
p
r
i
n
g
B
o
o
t
C
o
n
d
i
t
i
o
n
.
j
a
v
a
:
47
)
[
s
p
r
i
n
g
−
b
o
o
t
−
a
u
t
o
c
o
n
f
i
g
u
r
e
−
1.5.2.
R
E
L
E
A
S
E
.
j
a
r
:
1.5.2.
R
E
L
E
A
S
E
]
.
.
.
17
c
o
m
m
o
n
f
r
a
m
e
s
o
m
i
t
t
e
d
C
a
u
s
e
d
b
y
:
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
c
o
n
d
i
t
i
o
n
.
O
n
B
e
a
n
C
o
n
d
i
t
i
o
n
BeanSearchSpec.<init>(OnBeanCondition.java:299) ~[spring-boot-autoconfigure-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.autoconfigure.condition.OnBeanCondition.getMatchOutcome(OnBeanCondition.java:108) ~[spring-boot-autoconfigure-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:47) ~[spring-boot-autoconfigure-1.5.2.RELEASE.jar:1.5.2.RELEASE] ... 17 common frames omitted Caused by: org.springframework.boot.autoconfigure.condition.OnBeanCondition
BeanSearchSpec.<init>(OnBeanCondition.java:299) [spring−boot−autoconfigure−1.5.2.RELEASE.jar:1.5.2.RELEASE]atorg.springframework.boot.autoconfigure.condition.OnBeanCondition.getMatchOutcome(OnBeanCondition.java:108) [spring−boot−autoconfigure−1.5.2.RELEASE.jar:1.5.2.RELEASE]atorg.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:47) [spring−boot−autoconfigure−1.5.2.RELEASE.jar:1.5.2.RELEASE]...17commonframesomittedCausedby:org.springframework.boot.autoconfigure.condition.OnBeanConditionBeanTypeDeductionException: Failed to deduce bean type for org.springframework.cloud.netflix.eureka.server.EurekaServerAutoConfiguration
E
u
r
e
k
a
S
e
r
v
e
r
C
o
n
f
i
g
B
e
a
n
C
o
n
f
i
g
u
r
a
t
i
o
n
.
e
u
r
e
k
a
S
e
r
v
e
r
C
o
n
f
i
g
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
c
o
n
d
i
t
i
o
n
.
O
n
B
e
a
n
C
o
n
d
i
t
i
o
n
EurekaServerConfigBeanConfiguration.eurekaServerConfig at org.springframework.boot.autoconfigure.condition.OnBeanCondition
EurekaServerConfigBeanConfiguration.eurekaServerConfigatorg.springframework.boot.autoconfigure.condition.OnBeanConditionBeanSearchSpec.addDeducedBeanTypeForBeanMethod(OnBeanCondition.java:362) ~[spring-boot-autoconfigure-1.5.2.RELEASE.jar:1.5.2.RELEASE]
at org.springframework.boot.autoconfigure.condition.OnBeanCondition
B
e
a
n
S
e
a
r
c
h
S
p
e
c
.
a
d
d
D
e
d
u
c
e
d
B
e
a
n
T
y
p
e
(
O
n
B
e
a
n
C
o
n
d
i
t
i
o
n
.
j
a
v
a
:
346
)
[
s
p
r
i
n
g
−
b
o
o
t
−
a
u
t
o
c
o
n
f
i
g
u
r
e
−
1.5.2.
R
E
L
E
A
S
E
.
j
a
r
:
1.5.2.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
c
o
n
d
i
t
i
o
n
.
O
n
B
e
a
n
C
o
n
d
i
t
i
o
n
BeanSearchSpec.addDeducedBeanType(OnBeanCondition.java:346) ~[spring-boot-autoconfigure-1.5.2.RELEASE.jar:1.5.2.RELEASE] at org.springframework.boot.autoconfigure.condition.OnBeanCondition
BeanSearchSpec.addDeducedBeanType(OnBeanCondition.java:346) [spring−boot−autoconfigure−1.5.2.RELEASE.jar:1.5.2.RELEASE]atorg.springframework.boot.autoconfigure.condition.OnBeanConditionBeanSearchSpec.(OnBeanCondition.java:293) ~[spring-boot-autoconfigure-1.5.2.RELEASE.jar:1.5.2.RELEASE]
… 19 common frames omitted
Caused by: java.lang.ClassNotFoundException: com.netflix.eureka.EurekaServerConfig
at java.net.URLClassLoader$1.run(URLClassLoader.java:366) ~[na:1.7.0_80]
at java.net.URLClassLoader
1.
r
u
n
(
U
R
L
C
l
a
s
s
L
o
a
d
e
r
.
j
a
v
a
:
355
)
[
n
a
:
1.7.
0
8
0
]
a
t
j
a
v
a
.
s
e
c
u
r
i
t
y
.
A
c
c
e
s
s
C
o
n
t
r
o
l
l
e
r
.
d
o
P
r
i
v
i
l
e
g
e
d
(
N
a
t
i
v
e
M
e
t
h
o
d
)
[
n
a
:
1.7.
0
8
0
]
a
t
j
a
v
a
.
n
e
t
.
U
R
L
C
l
a
s
s
L
o
a
d
e
r
.
f
i
n
d
C
l
a
s
s
(
U
R
L
C
l
a
s
s
L
o
a
d
e
r
.
j
a
v
a
:
354
)
[
n
a
:
1.7.
0
8
0
]
a
t
j
a
v
a
.
l
a
n
g
.
C
l
a
s
s
L
o
a
d
e
r
.
l
o
a
d
C
l
a
s
s
(
C
l
a
s
s
L
o
a
d
e
r
.
j
a
v
a
:
425
)
[
n
a
:
1.7.
0
8
0
]
a
t
s
u
n
.
m
i
s
c
.
L
a
u
n
c
h
e
r
1.run(URLClassLoader.java:355) ~[na:1.7.0_80] at java.security.AccessController.doPrivileged(Native Method) ~[na:1.7.0_80] at java.net.URLClassLoader.findClass(URLClassLoader.java:354) ~[na:1.7.0_80] at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[na:1.7.0_80] at sun.misc.Launcher
1.run(URLClassLoader.java:355) [na:1.7.080]atjava.security.AccessController.doPrivileged(NativeMethod) [na:1.7.080]atjava.net.URLClassLoader.findClass(URLClassLoader.java:354) [na:1.7.080]atjava.lang.ClassLoader.loadClass(ClassLoader.java:425) [na:1.7.080]atsun.misc.LauncherAppClassLoader.loadClass(Launcher.java:308) ~[na:1.7.0_80]
at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[na:1.7.0_80]
at org.springframework.util.ClassUtils.forName(ClassUtils.java:250) ~[spring-core-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.boot.autoconfigure.condition.OnBeanCondition$BeanSearchSpec.addDeducedBeanTypeForBeanMethod(OnBeanCondition.java:356) ~[spring-boot-autoconfigure-1.5.2.RELEASE.jar:1.5.2.RELEASE]
… 21 common frames omitted
2019-03-01 08:01:11.233 INFO 11500 — [ main] ationConfigEmbeddedWebApplicationContext : Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@4bad4a49: startup date [Fri Mar 01 08:01:10 CST 2019]; root of context hierarchy
2019-03-01 08:01:11.234 WARN 11500 — [ main] ationConfigEmbeddedWebApplicationContext : Exception thrown from LifecycleProcessor on context close
java.lang.IllegalStateException: LifecycleProcessor not initialized - call ‘refresh’ before invoking lifecycle methods via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@4bad4a49: startup date [Fri Mar 01 08:01:10 CST 2019]; root of context hierarchy
at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:417) [spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1002) [spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:961) [spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:794) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:325) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1162) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1151) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]
at xp.com.EurekaServerApp.main(EurekaServerApp.java:12) [classes/:na]
2019-03-01 08:01:11.235 ERROR 11500 — [ main] o.s.b.f.s.DefaultListableBeanFactory : Destroy method on bean with name ‘org.springframework.boot.autoconfigure.internalCachingMetadataReaderFactory’ threw an exception
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call ‘refresh’ before multicasting events via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@4bad4a49: startup date [Fri Mar 01 08:01:10 CST 2019]; root of context hierarchy
at org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:404) [spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.context.support.ApplicationListenerDetector.postProcessBeforeDestruction(ApplicationListenerDetector.java:97) ~[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:253) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:578) [spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:554) [spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:961) [spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:523) [spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:968) [spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1033) [spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1009) [spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:961) [spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:794) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:325) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1162) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1151) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]
at xp.com.EurekaServerApp.main(EurekaServerApp.java:12) [classes/:na]
原因:maven 下载的jar包有问题,也有可能是自己下载的jar 与maven 自动下载的jar 有冲突导致
解决办法:删除 相关eureka jar 包重新,让maven 自动下载
我原来配置的 pom
org.springframework.cloud
spring-cloud-dependencies
Dalston.RC1
pom
import
这个个改成
org.springframework.cloud
spring-cloud-dependencies
Dalston.SR1
pom
import
重新下载jar 完美启动