The send method of javamailsender reported an error local address contains illegal character in string
problem analysis
It was supposed to be a problem with the received parameters. As a result, the front end modified the format or reported an error
Finally, it is found that the parameter receiving method is wrong when printing the information in the controller
The email passed from the front end is a JSON object, similar to {“email”:“ [email protected] “}, and I use
@Requestparam (“email”) string is used to receive email. Naturally, an error is reported
Solution
Change the method of receiving parameters to @ requestbody Map & lt; String,Object> map
Use map. Get (“email”) to get the value
Similar Posts:
- [Solved] Cannot deserialize instance of `java.lang.String` out of START_OBJECT token
- How to Solve Error: Request failed with status code 500
- The influence of UVM environment on UVM_ config_ Understanding of DB
- Uncaught typeerror: the solution of illegal invocation problem
- How to Solve Error: Unexpected token o in JSON at position 1
- [Solved] Sping controller Receives list entity parameter Error: nested exception is java.lang.IndexOutOfBoundsException: Index: 256, Size: 256
- Error: need RCPT command
- [Solved] No converter found for return value of type: class org.json.JSONObject
- Error reported when Foxmail software adds QQ email