mysql - Error creating bean with name 'org.springframework.jdbc.core.JdbcTemplate#0' -
i building project github. when build project on eclipse.
after configuration database error.
error creating bean name 'org.springframework.jdbc.core.jdbctemplate#0' defined in servletcontext resource [/web-inf/application-context.xml]: cannot create inner bean 'com.mysql.jdbc.jdbc2.optional.mysqlconnectionpooldata source#82d210' of type [com.mysql.jdbc.jdbc2.optional.mysqlconnectionpooldatasource] while setting bean property 'datasource';
nested exception org.springframework.beans.factory.cannotloadbeanclassexception: cannot find class [com.mysql.jdbc. jdbc2.optional.mysqlconnectionpooldatasource] bean name 'com.mysql.jdbc.jdbc2.optional.mysqlconnectionpooldata source#82d210' defined in servletcontext resource [/web-inf/application-context.xml];
nested exception java.lang. classnotfoundexception: com.mysql.jdbc.jdbc2.optional.mysqlconnectionpooldatasource @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolveinnerbean (beandefinitionvalueresolver.java:282)
please me solve issue.
you missing jar. please include jar in classpath: com.mysql.jdbc_5.1.5.jar
Comments
Post a Comment