use*_*481 1 java jdbc classnotfoundexception google-cloud-sql
我正在使用Jdbc和CloudSql我按照本教程https://developers.google.com/appengine/docs/java/cloud-sql/当我com.mysql.jdbc.GoogleDriver通过使用加载此类时 class.forName("com.mysql.jdbc.GoogleDriver");
我有
ClassNotFoundException
Run Code Online (Sandbox Code Playgroud)
谁能告诉我在哪里下载这个罐子?
小智 5
只有在AppEngine上运行应用程序时才使用com.mysql.jdbc.GoogleDriver驱动程序.
是这样的吗?如果是这样,您是否已根据https://developers.google.com/appengine/docs/java/cloud-sql/#Java_Connect_to_your_database启用了mysql connector/j ?
如果您在本地运行应用程序,则需要使用stock mysql驱动程序.
| 归档时间: |
|
| 查看次数: |
7362 次 |
| 最近记录: |