运行spring-boot应用程序时出错。调用目标异常

时间:2019-02-02 17:03:29

标签: java spring spring-boot

当我运行spring-boot应用程序时,出现以下错误:

Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.3.RELEASE:run (default-cli) on project nlp-pipeline-svc: An exception occurred while running. null: InvocationTargetException: org.springframework.util.Assert.isTrue(ZLjava/util/function/Supplier;)V

完全跟踪错误:

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run 
(AbstractRunMojo.java:496)
at java.lang.Thread.run (Thread.java:748)
Caused by: java.lang.NoSuchMethodError: 
org.springframework.util.Assert.isTrue(ZLjava/util/function/Supplier;)V
at 
org.springframework.boot.context.properties.bind.Bindable.withExistingValue 
(Bindable.java:162)
at org.springframework.boot.context.properties.bind.Bindable.ofInstance 
(Bindable.java:192)
at org.springframework.boot.SpringApplication.bindToSpringApplication 
(SpringApplication.java:545)
at org.springframework.boot.SpringApplication.prepareEnvironment 
(SpringApplication.java:359)
at org.springframework.boot.SpringApplication.run 
(SpringApplication.java:317)
at org.springframework.boot.SpringApplication.run 
(SpringApplication.java:1255)
at org.springframework.boot.SpringApplication.run 
(SpringApplication.java:1243)
at com.sap.health.nlp.pipeline.NLPPipelineSvcApplication.main 
(NLPPipelineSvcApplication.java:14)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run 
(AbstractRunMojo.java:496)
at java.lang.Thread.run (Thread.java:748)
[INFO] ---------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ---------------------------------------------------------------------

我正在使用spring 2.0.3版本。和Java版本1.8 谁能帮忙。我找不到春季版本中是否存在任何依赖冲突。

0 个答案:

没有答案