开发者社区> 问答> 正文

springcloud gateway 集成security报错?报错

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.

怎么解决啊

展开
收起
爱吃鱼的程序员 2020-06-06 10:47:10 1314 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB
                        <pre>
    

    启动类添加扫描 @ComponentScan(basePackages = {"org.springframework.http.codec"})

                            无效
                        
    
                        <p>兼容性问题,降低版本就行了,亲测可用。<a>GitHub</a></p> 
    
    <spring-cloud.version>Finchley.RC1</spring-cloud.version>
                        <p>你security的用户名和秘密在哪里配置的?lz</p>
                    
    
                        <p>楼主怎么写的</p>
                    
    
                        <p>请问楼主如何解决的?</p>
                    
    
                            回复 <a class="referer" target="_blank">@在乎</a>  : 嗯谢谢,已解决
                        
    
                            版本问题   cloud版本和boot版本没对应上
    
    2020-06-06 10:47:24
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
阿里邮箱—安全高效集成 立即下载
集成智能接入网关APP:优化企业级移动办公网络 立即下载
云效助力企业集成安全到DevOps中 立即下载