I was using JNDI and connection was established using mysql-connector-java copied in lib folder of tomcat. I did not copy same file in new configuration. Now i added mysql-connector-java in pom.xml and it resolved the issue.
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.9</version>
</dependency>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.