ueditor1.4.3jsp版成功上传图片后却回显不出来与在线管理显示不出图片的解决方案
2015-12-13 17:59
591 查看
这是因为路径问题,可以在jsp/config.json这个文件去改路径
通过“imageUrlPrefix”与“imagePathFormat”这两个属性去拼凑路径。
“imageUrlPrefix”是前缀的意思
如:我遇到的问题是图片回显地址为:
http://localhost:8080/ueditor/jsp/upload/image/......
而正确的地址是:
http://localhost:8080/Spring_3100_Registration_9_bootstrap/ueditor/jsp/upload/image/......
“Spring_3100_Registration_9_bootstrap” 是我项目的名字,所以,我通过配置“imageUrlPrefix”与“imagePathFormat”这两个属性,
将他们设置为:
"imageUrlPrefix": "/Spring_3100_Registration_9_bootstrap/",
"imagePathFormat": "/ueditor/jsp/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}",
就可以正确回显了
通过“imageUrlPrefix”与“imagePathFormat”这两个属性去拼凑路径。
“imageUrlPrefix”是前缀的意思
如:我遇到的问题是图片回显地址为:
http://localhost:8080/ueditor/jsp/upload/image/......
而正确的地址是:
http://localhost:8080/Spring_3100_Registration_9_bootstrap/ueditor/jsp/upload/image/......
“Spring_3100_Registration_9_bootstrap” 是我项目的名字,所以,我通过配置“imageUrlPrefix”与“imagePathFormat”这两个属性,
将他们设置为:
"imageUrlPrefix": "/Spring_3100_Registration_9_bootstrap/",
"imagePathFormat": "/ueditor/jsp/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}",
就可以正确回显了
相关文章推荐
- java中PriorityQueue优先级队列的使用
- UITableView基础
- StringBuilder源码分析
- UVA 11235 Frequent values
- hibernate query.list() 返回的数据类型
- UiAutomator无法识别popupwindow的解决方法
- 蓝鸥 UI 考试 绝密
- iOS UI 21 消息通知
- iOS UI 21 消息通知
- iOS UI 21 单例中的线程
- iOS UI 21 单例中的线程
- iOS UI 21 线程
- iOS UI 21 线程
- iOS UI 21 动画
- iOS UI 21 动画
- iOS UI 20 音乐播放器
- iOS UI 20 音乐播放器
- iOS UI 18 uicollectionview和自定义cell
- iOS UI 18 uicollectionview和自定义cell
- iOS UI 18 数据库