這是因為路徑問題,可以在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}",
就可以正確回顯了
如果你還碰到了在線管理不能顯示出圖片,這是因為jar包的問題,具體可以見
http://shuoit.net/it/18.html
新聞熱點
疑難解答