Today, because the parameters of the stored procedure are modified, the data is added to MySQL. In the process of writing, this default value is simply written as a dead value. But after the operation found an error.
Java.lang.character cannot is cast to java.lang.String
Java.lang.character cannot is cast to java.lang.String
This error. Then check the code and surf the internet for answers. Finally, finally solved.
Because I wrote it when I was passing the value.
' 0 '
So the incoming value is passed along with the single quotation mark.
Last modified to "0".
Problem solving.
This is not a big problem, but usually in writing code is not too much attention.
I hope I will get rid of this problem later.
With June mutual encouragement.
This article is from the "work history of the Mo Bo" blog, please be sure to keep this source http://moxiaobo.blog.51cto.com/6784434/1662373
Java.lang.character cannot is cast to java.lang.String