ueditor中FileUtils.getTempDirectory()找不到
前几天整UEditor,又报了一个错:
SEVERE: Servlet.service() for servlet jsp threw exception Throwable occurred: java.lang.NoSuchMethodError: org/apache/commons/io/FileUtils.getTempDirectory()Ljava/io/File; at com.baidu.ueditor.upload.StorageManager.getTmpFile(StorageManager.java:117) at com.baidu.ueditor.upload.StorageManager.saveFileByInputStream(StorageManager.java:51) at com.baidu.ueditor.upload.BinaryUploader.save(BinaryUploader.java:75) at com.baidu.ueditor.upload.Uploader.doExec(Uploader.java:24) at com.baidu.ueditor.ActionEnter.invoke(ActionEnter.java:80) at com.baidu.ueditor.ActionEnter.exec(ActionEnter.java:49) at org.apache.jsp.core.ueditor.jsp.controller_jsp._jspService(controller_jsp.java:74) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
这是jar包报的错 。
我下的UEditor是1.4.3的,它自带的commons-io.jar是2.4的,而我原本项目里的是1.4的,因此出现问题。
解决方法很简单,将1.4的替换成2.4的就好啦。
值得一提的是:下载的UEditor自带了它这个版本需要的jar包,系统里边最好使用这些j版本的ar包,因为可能会出现类似于上面的问题。当然替换的前提条件是新的jar包不影响原有功能。
相关推荐
layloge 2020-06-26
chenzhiwei 2020-05-26
jollyhope 2020-05-10
zmosquito 2019-12-28
jkl00 2018-09-21
郭大路路 2019-02-28
tuxlcsdn 2019-07-01
呼呼ozZ 2015-08-26
ApachePHPMySQL 2018-01-10
JasonYeung 2019-06-28
semjinghua 2016-09-01
我的程序员人生 2016-08-30
韩吉鑫 2019-06-27
Xunzi 2015-06-09
袅袅青烟散 2019-06-27
srdwxA 2014-05-20
geminihr 2014-05-07
codingker 2014-04-28
shittihs 2019-06-26