Java error: Java math. BigDecimal cannot be cast to java. lang.String
•
Java
Take a number from the database and turn it into a string. An error is reported: Java math. BigDecimal cannot be cast to java. lang.String
error code
Integer.parseInt((String)map.get("id"))
resolvent
Object object = map.get("id"); Integer.parseInt(String.valueOf(object ));
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码