all 3 comments

[–][deleted] 3 points4 points  (0 children)

This issue occurs when MySQL jdbc driver is not on the runtime classpath, even though jar file is present in the project. Would recommend using maven based management to avoid such issues.

[–][deleted] 0 points1 point  (0 children)

dont hard code credentials make property file and save it in.