I'm guessing localhost:3306 is not the right address for your database. It's normally on other server then your application server so try changing that to the correct ip adres (or name). This can explain why you can't connect.
chillworld ( 2015-08-31 10:03:17 +0800 )editNormally they put those values in a propertie file so you can have different prop files for dev, ts, acc and prod without changing your application.
chillworld ( 2015-08-31 10:04:27 +0800 )edit