解决Only a type can be imported. com.mysql.jdbc.Connection resolves to a package的报错问题

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决Only a type can be imported. com.mysql.jdbc.Connection resolves to a package的报错问题相关的知识,希望对你有一定的参考价值。

写jsp加载数据驱动以后老是提示Only a type can be imported. com.mysql.jdbc.Connection resolves to a package的错误,然而改成java就无报错

出错的原因:没有成功引入包

解决方法:将mysql-connector-java-5.1.39-bin.jar放到tomcat的bin目录下就可以解决

 

以上是关于解决Only a type can be imported. com.mysql.jdbc.Connection resolves to a package的报错问题的主要内容,如果未能解决你的问题,请参考以下文章

解决问题:only integer scalar arrays can be converted to a scalar index

记录:MySQL报错1075 - Incorrect table defintion;there can be only...解决方案

Move can only be called on an active agent that has been placed a Navmesh的解决办法

错误“a label can only be part of a statement and a declaration is not a statement”解决方法

错误“a label can only be part of a statement and a declaration is not a statement”解决方法

only static const integral data members can be initialized within a class