Open DaehunGwak opened 1 year ago
I have the same issue. It seems it have stopped working.
I have the same issue and for me it started happening since adding the dependency to redis:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
I am using a record where the param names are multi-word, so that I have to use the feign.Param annotation to specify the name I want for the resulting queryParam:
public record MyRecord(
@Param(value = "my_param_1") String param1,
@Param(value = "my_param_2") boolean param1
) {
Then I use this like this:
MyFeignClient {
myFeignMethod(@SpringQueryMap MyRecord myRecord);
}
And this worked fine until I added the dependency to redis, as I said.
Any help appreciated.
Using spring-cloud-openfeign-core:4.0.0 + spring-data-redis:3.0.1
This is more than likely an incompatibility introduced for later JDK support. Since you are using SpringQueryMap
to expand the parameter, I recommend opening an issue with Spring Cloud OpenFeign, since it is there where the problem may lie, not in Feign.
Hello. When the
@SpringQueryMap
parameter is apllied as record class, http query is not recognized. Is there some plan or has it already been updated?using feign version
test result
summary
test type
test report
record class
record class
feign method
result: query parameter is not recognized
record class + adding get accessor
record class + get accessor
feign method
result: query parameter is recognized
normal class + getter accesor
normal class
feign method
result: query parameter is recognized