When the type of the requested parameter is correct and various configurations are correct, a 400 error will appear, and the console will report an error failed to convert value of type ‘Java. Lang. string’ to required type ‘Java. Lang. Integer’; Nested exception is java.lang.numberformatexception: for input string: “XXX”] a similar error may be that the request path set by your control layer and the path of static resources have the same name,
For example:
the page I visit is/user/index.html
and the requestmapping (“user”) of the control layer
when accessing/user/index.html, the user request of the servlet will be followed, and the parameter type may not be correct, which will be 400.
if the correct estimation directly returns the requested JSON result,
Read More:
- Spring MVC 406 status code / could not find acceptable representation
- HTTP 400 error – bad request
- The 406 status code can not find acceptable representation is returned in spring MVC
- IIS “Bad Request – Request Too Long. HTTP Error 400. The size of the request headers is too long.”
- urlopen error unknown url type:httpë/HTTP Error 400:Bad Request
- Bad Request – Request Too Long. HTTP Error 400. The size of the request headers is too long
- ajax error 400 (Failed to load resource: the server responded with a status of 400 (Bad Request))
- jsp: Failed to load resource: the server responded with a status of 400 (Bad Request)
- Router DIO network request: dioerror[ DioErrorType.RESPONSE ]: HTTP status error [400] or [500]
- The request failed with HTTP status 401: Unauthorized. SSRS 2008
- Spring MVC – enable static resource access
- Springboot project: error parsing HTTP request header note: further occurrences of HTTP request parsing
- Spring MVC realizes page upload file
- Error 404 reported by spring MVC access Servlet
- Spring MVC error: could not find acceptable representation
- Docker Nacos deployment uses container name to access 400 bad request
- Solution of Vue axios400 bad request problem
- The installation of Homebrew encountered a 400 Bad Request error
- Browser prompt: Source mapping error: request failed with status 404 Source URL: http://xxx.js Source mapping URL: jquery.min.map
- Error parsing HTTP request header Note: further occurrences of HTTP header p