spring-cloud-openfeign
spring-cloud-openfeign copied to clipboard
@SpringQueryMap serialVersionUID Duplicate key Exception. need help
Describe the bug spring-cloud-openfeign-core-3.1.3.RELEASE
if super class define serialVersionUID and some class extends this super class and use "@SrpingQueryMap" to send request will throw "Duplicate key" Exception.
Sample
public class A implements Serializable { private static final long serialVersionUID = 1L; }
public class B extends A implements Serializable { private static final long serialVersionUID = -4581321211925569500L;
private String someKey;
}
public interface SomeFeignClient { String someFeignClientRquest(@SpringQueryMap B b); }
@RestController public class someController{ @GetMapping("someUri") public String someFuntionName(B b){ return someFeignClientRquest(b); } }
how can i do fix this?
This problem does not appear in spring-cloud-openfeign-core-2.2.6.RELEASE
Hello @RevisitMoon, thanks for submitting the issue. Please learn how to properly format code and logs. Please provide a minimal, complete, verifiable example that reproduces the issue - this should be a link with a sample Feign Client app that reproduces the issue, along with the steps to reproduce, the expected result and the actual result.
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.