The swagger link is accessed with the following error
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Thu Mar 17 20:14:30 CST 2022
There was an unexpected error (type=Method Not Allowed, status=405).
Request method ‘GET’ not supported
The reason is that @PostMapping does not have a configured path
@PostMapping
public UserInfoResponse queryUserNameById(@RequestBody UserInfoRequest request){
log.info("Query user name request parameters",request);
UserInfoResponse response = userService.selectUserNameById(request);
log.info("Query user name return parameters",request);
return response;
}
Read More:
- How to Solve Internal Server Error: /swagger/v1/swagger.json
- Swagger-ui.html Open Error: There was an unexpected error (type=Not Found, status=404)
- Axios request failed, get the status code and error information, how to encapsulate the function dealing with the public error code
- Error (17) solves the problem of losing the request header of multithread asynchronous feign call
- Uncaught (in promise) Error: Delete success at __webpack_exports__.default 405 error
- [Solved] Swagger Startup Error: Failed to start bean ‘documentationPluginsBootstrapper‘
- [Solved] Access to XMLHttpRequest at ‘http://127.0.0.1:5000/markdownlang/‘ from origin ‘null‘ has been bl
- [Solved] SpringBoot Error: HttpMediaTypeNotSupportedException: Content type ‘application/json‘ not supported
- Solution of socket write error caused by pressing F5 to refresh page by ehcache user
- django Internal server error 500 Modify source code to view print errors
- [Solved] thymeleaf.TemplateEngineException processing template “main“: An error happened during template pars
- [Solved] FileUploadException: the request was rejected because no multipart boundary was found
- Grafana Error: 414 Request-URI Too Large [How to Solve]
- [Solved] Synchronous operations are disallowed. Call ReadAsync or set AllowSynchronousIO to true instead.
- Feign declarative call service feign.codec.DecodeException: Error while extracting response for type [class **] and…
- [Solved] Wwagger error: java.lang.NumberFormatException: For input string: ““
- Stream to MemoryStream to solve Stream.Length error report This stream does not support search operations
- How to Solve Error: Heartbeating to master:7182 failed.
- Fetch Error: Failed to execute ‘fetch’ on ‘Window’: Request with GET/HEAD method cannot have body
- feign.FeignException: status 404 reading XXXClient#XXMethod(String)