Openalign duplicate mapping
Ambiguous mapping
As long as there is a controller annotation or requestmapping annotation on the class, it will be registered on both sides
APIs and subclasses are registered multiple times
Solution: move requsstmapping to a subclass method
The feign interface can use the path parameter
The second parameter of openalign interface method is bindingresult, and an error is reported
The reason is that if the second parameter is not annotated, it defaults to @requestbody
@ApiOperation(value = "user-information-update", notes = "user-information-update", httpMethod = "POST")
@PostMapping("/updateUserInfo")
public GraceJSONResult updateUserInfo(@RequestBody @Valid UpdateUserBO updateUserBO, BindingResult bindingResult);
Equivalent to
@ApiOperation(value = "user-information-update", notes = "user-information-update", httpMethod = "POST")
@PostMapping("/updateUserInfo")
public GraceJSONResult updateUserInfo(@RequestBody @Valid UpdateUserBO updateUserBO, @RequestBody BindingResult bindingResult);
Openalign does not allow two requestbodies
Similar Posts:
- How to Solve Error: Required request body is missing
- [Solved] Oauth2(spring security)method_not_allowed(Request method ‘GET’ not supported)
- Spring Cloud Openfeign Get Request 405 Error [How to Solve]
- [Solved] oauth2(spring security) Error: method_not_allowed(Request method ‘GET’ not supported)
- SpringMVC @RequestBody Error:Unrecognized field, not marked as ignorable
- Springboot uses the Datetimeformat (pattern = “yyyy MM DD HH: mm: SS”) annotation to automatically convert the string to date type error
- [Solved] Sping controller Receives list entity parameter Error: nested exception is java.lang.IndexOutOfBoundsException: Index: 256, Size: 256
- [Three Method] Multiple actions were found that match the request in Web Api
- How to Solve Error: Preflight response is not successful
- Two ways to implement Spring Boot’s scanmapper interface class