首页 新闻 会员 周边

eureka server是否可以和spring cloud gateway合并在一起

0
悬赏园豆:5 [待解决问题]

eureka server是否可以和spring cloud gateway合并在一起,谁能提供个demo ?

问题补充:

使用intellij idea创建spring服务。使用向导,通过以下步骤创建服务:
File => New => Project=>Spring initializr=>dependencies =>勾选:
Eureka Server
Eureka Discovery
Gateway
Hystrix
=>完成
application.yml配置:
server:
port: 20199
eureka:
client:
service-url:
defaultZone: http://localhost:20199/eureka
Application加上
@EnableEurekaServer
@EnableEurekaClient

运行=>
报错
Parameter 0 of method modifyRequestBodyGatewayFilterFactory in org.springframework.cloud.gateway.config.GatewayAutoConfiguration required a bean of type 'org.springframework.http.codec.ServerCodecConfigurer' that could not be found.

i.Net的主页 i.Net | 初学一级 | 园豆:54
提问于:2019-04-23 18:18
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册