這是因?yàn)槁窂絾栴},可以在jsp/config.json這個(gè)文件去改路徑
通過“imageUrlPRefix”與“imagePathFormat”這兩個(gè)屬性去拼湊路徑。
“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” 是我項(xiàng)目的名字,所以,我通過配置“imageUrlPrefix”與“imagePathFormat”這兩個(gè)屬性,
將他們?cè)O(shè)置為:
"imageUrlPrefix": "/Spring_3100_Registration_9_bootstrap/",
"imagePathFormat": "/ueditor/jsp/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}",
就可以正確回顯了
如果你還碰到了在線管理不能顯示出圖片,這是因?yàn)閖ar包的問題,具體可以見
http://shuoit.net/it/18.html
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注