spring-cloud-openfeign icon indicating copy to clipboard operation
spring-cloud-openfeign copied to clipboard

@SpringQueryMap serialVersionUID Duplicate key Exception. need help

Open RevisitMoon opened this issue 3 years ago • 1 comments
trafficstars

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?

RevisitMoon avatar Sep 06 '22 17:09 RevisitMoon

This problem does not appear in spring-cloud-openfeign-core-2.2.6.RELEASE

RevisitMoon avatar Sep 06 '22 17:09 RevisitMoon

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.

OlgaMaciaszek avatar Oct 17 '22 16:10 OlgaMaciaszek

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.

spring-cloud-issues avatar Oct 24 '22 16:10 spring-cloud-issues

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.

spring-cloud-issues avatar Oct 31 '22 16:10 spring-cloud-issues