[关闭]
@liayun 2016-09-30T14:24:11.000000Z 字数 415 阅读 1474

Struts2框架入门案例时的异常——java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils

Struts2框架学习


问题描述

我在初学Struts2框架时,做第一个Struts2应用时,出现异常如下:
警告: Could not create JarEntryRevision for [jar:file:/F:/Tomcat_8/apache-tomcat-8.0.36/webapps/Struts2/WEB-INF/lib/struts2-core-2.3.24.jar]!
java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils

问题原因

项目中缺如下jar包:

解决方法

在使用struts-2.3.24时,引入以上两个jar包。

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注