You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/01/21 03:06:43 UTC

[GitHub] HsbGitHub opened a new issue #1066: servicecomb+zuul+springboot2.0

HsbGitHub opened a new issue #1066: servicecomb+zuul+springboot2.0
URL: https://github.com/apache/servicecomb-java-chassis/issues/1066
 
 
   
   <!-- servicecomb 依赖 -->
   
   <dependencyManagement>
   	<dependencies>
   		<!-- spring boot -->
   		<dependency>
   			<groupId>org.springframework.boot</groupId>
   			<artifactId>spring-boot-starter-parent</artifactId>
   			<version>2.0.5.RELEASE</version>
   			<type>pom</type>
   			<scope>import</scope>
   		</dependency>
   
   		<!-- servicecomb -->
   		<dependency>
   			<groupId>org.apache.servicecomb</groupId>
   			<artifactId>java-chassis-dependencies</artifactId>
   			<version>1.0.0</version>
   			<type>pom</type>
   			<scope>import</scope>
   		</dependency>
   		
   		
   		<!-- servicecomb -->
   		<dependency>
   			<groupId>org.apache.servicecomb</groupId>
   			<artifactId>java-chassis-dependencies</artifactId>
   			<version>1.0.0</version>
   			<type>pom</type>
   			<scope>import</scope>
   		</dependency>
   	</dependencies>
   </dependencyManagement>
   
   
   <!-- zuul 依赖 -->
   <dependency>
   	<groupId>org.springframework.cloud</groupId>
   	<artifactId>spring-cloud-starter-zuul</artifactId>
   </dependency>
   <dependency>
   	<groupId>org.springframework.cloud</groupId>
   	<artifactId>spring-cloud-starter-ribbon</artifactId>
   </dependency>
   <dependency>
   	<groupId>org.springframework.cloud</groupId>
   	<artifactId>spring-cloud-starter-hystrix</artifactId>
   </dependency>
   <dependency>
   	<groupId>org.apache.servicecomb</groupId>
   	<artifactId>spring-boot-starter-discovery</artifactId>
   </dependency>
   
   <dependency>
   	<groupId>org.apache.servicecomb</groupId>
   	<artifactId>spring-cloud-zuul</artifactId>
   </dependency>
   
   
   start exception :
   
   2019-01-21 10:52:38,783 [main           ] ERROR SpringApplication              - Application run failed
   Disconnected from the target VM, address: '127.0.0.1:58231', transport: 'socket'
   java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.<init>([Ljava/lang/Object;)V
   	at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:161)
   	at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:102)
   	at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:68)
   	at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
   	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
   	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
   	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)
   	at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:74)
   	at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)
   	at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:364)
   	at org.springframework.boot.SpringApplication.run(SpringApplication.java:323)
   	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1277)
   	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1265)
   	at cn.com.header.rock.service.APIApplication.main(APIApplication.java:27)
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services