1. 程式人生 > >QueryRunner cannot be resolved to a type:關於包不能正常匯入的問題

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了;