Resolved [org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type ‘java.lang.String’ to required type ‘java.lang.Integer’; nested exception is java.lang.NumberFormatException: For input string: “50.5”]
General meaning:
failed to convert the value of type “Java. Lang. string” to the required type “Java. Lang. integer”; Nested exception is java.lang.numberformatexception: for input string: “50.5”]
This kind of error is usually caused by the parameters passed by the front end and the failure of the back end parsing, that is, it is wearing illegal parameters. For example, the upper front end gives me a floating point number, and the back end will fail when the string is parsed into a number!
Read More:
- How to Solve Error: Type mismatch: cannot convert from Object to Car
- How to Fix Cannot convert value of type Error
- How to Solve Error: Element ‘dependency’ cannot have character [children], because the type’s content type is element-
- How to Solve SpringBoot MongoDB MongoAutoConfiguration Startup Error
- IDEA: How to Solve Springboot Project install Error
- How to Solve Error: Missing type map configuration or unsupported mapping
- How to Solve TypeError: type numpy.ndarray doesn’t define __round__ method
- How to Solve Error Swift 4 Expression type ‘@value CGRect’ is ambiguous without more context
- How to Solve TypeError: type numpy.ndarray doesn‘t define __round__ method
- How to Solve Docker Error: elasticsearch exception: type=cluster_block_exception, reason=blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];
- How to Solve Error: failed to load response
- How to Solve ERROR – unregister mbean error javax.management.InstanceNotFoundException: com.alibaba.druid:type=
- How to Solve Logstash error: failed to execute action
- How to Solve Error: Heartbeating to master:7182 failed.
- How to Solve Application failed to start error
- How to Solve Docker failed to initialize Error
- How to Solve Chrome Error: net::ERR_FAILED
- How to Solve Error: Failed to load ApplicationContext
- [Solved] docker failed to solve: failed to solve with frontend dockerfile.v0: failed to create LLB definition