标签:
启动报错:
java.lang.Error: Unresolved compilation problems:
The import org.apache.poi.hssf.usermodel.HSSFWorkbook cannot be resolved
The type JeecgSingleExcelView must implement the inherited abstract method AbstractExcelView.buildExcelDocument(Map<String,Object>, HSSFWorkbook, HttpServletRequest, HttpServletResponse)
HSSFWorkbook cannot be resolved to a type
参考链接 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了。
标签:
原文地址:http://my.oschina.net/u/914897/blog/402297