I am using MySQL with Spring JDBC template for my web application. I need to store phone number with only digits (10). I am little bit confused about data type using data ty
My requirement is to display 10 digit phone number in the jsp. So here's the setup for me. MySQL: numeric(10)
numeric(10)
Java Side:
@NumberFormat(pattern = "#") private long mobileNumber;
and it worked!