java - UEditor上传成功的图片会在重启tomcat时消失
迷茫
迷茫 2017-04-18 10:23:49
0
1
430

在使用UEditor时能正确上传图片和回显图片,但是在重启tomcat后原来存储图片的文件夹和图片都没了。
另外上传图片时项目下生成的存放的文件夹以及图片在项目中看不到

这是项目中ueditor的位置

自己添加的upload文件夹,上传图片会在这里生成,然而在项目中看不到

上面两张是我更改的设置
大概情况就是这样,我搜索了n页发现大家几乎没说过这个问题,也没找到这个的配置项,大家没有这些问题么,这些地方哪里错了?弄了一天有点崩溃= =...

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(1)
巴扎黑

This has nothing to do with ueditor.
You will understand once you understand the general key process of tomcat startup:

  1. Compile java code into class

  2. Copy the compiled results to the web directory

  3. Start web service

That is to say, the directory where tomcat runs the web service and your project are two directories. The uploaded pictures are in the web directory. Every time it is restarted, the web directory is cleared. So...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template