Been24

Results 5 comments of Been24

> > It is something you would add, not remove. > > I added it from the beginning but it not work. Maybe you should set ''http.cors()'' in SecurityWebFilterChain

> 2021 年 7 月 7 日,我遇到了同样的问题,我使用的 Spring Boot 版本是 2.4.8 和云版本 2020.0.3,我`application.yaml`的问题如下: > > ```yaml > ## Spring 配置 > base-path : /services/api/v1 > gateway-path : ${base-path}/gateway > server...

> 您好,您有解决方案吗?我遇到了同样的问题。 > 您好,您有解决方案吗?我遇到了同样的问题。 > Hello, do you have a solution? I have encountered the same problem. yeah, you can use ` Map data = Collections.singletonMap(file.length == 0 ? ""...

> 您能给出具体的解决方案吗?十分感谢。 可以暂时自己自定义一个SpringFormEncoder,等后续官方解决了再说。 `package com.hb56.block.config.feign; import feign.codec.Encoder; import org.springframework.beans.factory.ObjectFactory; import org.springframework.boot.autoconfigure.http.HttpMessageConverters; import org.springframework.cloud.openfeign.support.SpringEncoder; import org.springframework.context.annotation.Bean; /** * @author Been * @description feign-form局部configuration用于表单提交和上传文件 */ public class FeignFormConfig { private final ObjectFactory...

其实这个问题有人已经贡献改进源码了,可能下个版本就修复了,你也可以参照它使用的LinkedMultiValueMap来操作。 https://github.com/OpenFeign/feign-form/pull/74/commits/4131ead3593e81de87f8bfa62e730af58a8ee8e2