QueryRunner cannot be resolved to a type:关于包不能正常导入的问题

在操作一个功能模块的时候,出现一个问题:

我原则是按着项目指导一步一步走的,但却出现,

QueryRunner cannot be resolved to a type,这个问题应该属于Xxx cannot be resolved to a type.

我解决方案:

我百度了QueryRunner包是:import org.apache.commons.dbutils.QueryRunner;

属于:org.apache.commons包下面的组件:

下载了一个:

commons-dbutils-1.2.jar

放置在lib下面,就OK了;

猜你喜欢

转载自www.cnblogs.com/huchun/p/10249404.html