記一次jeecg啓動出錯的解決

啓動報錯:html

java.lang.Error: Unresolved compilation problems: java

The import org.apache.poi.hssf.usermodel.HSSFWorkbook cannot be resolvedweb

The type JeecgSingleExcelView must implement the inherited abstract method AbstractExcelView.buildExcelDocument(Map<String,Object>, HSSFWorkbook, HttpServletRequest, HttpServletResponse)apache

HSSFWorkbook cannot be resolved to a typemaven

參考連接 http://www.360doc.com/content/12/1015/17/4152160_241639166.shtml ,仔細想了一下本身上午有從新編繹過jeecg easy poi的包,而且在根目錄下用mvn install從新把這些包安裝到maven庫中,懷疑是否是編繹這些工程時使用的編繹版本(compiler level)與jeecg工程的版本不同,查看jeecg工程的compiler level爲1.7,而easy-poi-web工程的compiler level卻爲1.6。找到問題後就好解決了:把全部工程的compiler level都改成1.6,從新在easypoi的根目錄下運行mvn install從新安裝jar包到本地maven庫就ok了。ui

相關文章
相關標籤/搜索