springcloud gateway404问题

在配置之前
在这里插入图片描述
最后发现discovery位置写错了,应该写在和routes一个级别下,我真是服了

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.

还有在配置getaway 时候还有到个问题,就是包冲突了,直接启动不了,后来发现是我在创建项目时导入了spring-boot-starter-web,导致jar冲突,所以遇到这种问题直接把spring-boot-starter-web去pom里去掉即可


版权声明:本文为qq_30667039原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。