Das*_*ath 7 spring-boot spring-cloud
尝试使用Spring云网关创建自己的api网关
下面是我的build.gradle文件,
buildscript {
ext {
springBootVersion = "1.5.9.RELEASE"
}
apply plugin: "io.spring.dependency-management"
apply plugin: "org.springframework.boot"
dependencies {
compile(
'org.springframework.boot:spring-boot-starter-web',
'org.springframework.boot:spring-boot-starter-tomcat',
'org.springframework.boot:spring-boot-starter-actuator',
'org.springframework.boot:spring-boot-starter-webflux',
'org.springframework.cloud:spring-cloud-starter-gateway',
'org.springframework.cloud:spring-cloud-starter-eureka'
)
testCompile(
'org.springframework.boot:spring-boot-starter-test',
'org.springframework.cloud:spring-cloud-starter-eureka-server'
)
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:Finchley.M5"
mavenBom 'org.springframework.cloud:spring-cloud-gateway:2.0.0.BUILD-SNAPSHOT'
}
}
Run Code Online (Sandbox Code Playgroud)
我正在尝试刷新gradle项目,得到以下错误
在0s配置成功无法解决:org.springframework.cloud:spring-cloud-starter-eureka:无法解决:org.springframework.cloud:spring-cloud-starter-eureka-server:
你能确认我的春季启动和云版吗?
它们在Edgware中重命名.这一个是spring-cloud-starter-netflix-eureka-client.另一个是spring-cloud-starter-netflix-eureka-server.
归档时间: |
|
查看次数: |
3933 次 |
最近记录: |