ueditor uft 8 jsp版本配置

2021-08-08 21:53:33 字數 863 閱讀 5532

1.前台html:

var ue = ue.geteditor('editor');

2.jsp/config.json

/* 上傳配置項 */

"imageactionname": "/fileupload/imgupload", /* 執行上傳的action名稱 */

"imagefieldname": "upfile", /* 提交的表單名稱 */

"imagemaxsize": 2048000, /* 上傳大小限制,單位b */

"imageallowfiles": [".png", ".jpg", ".jpeg", ".gif", ".bmp"], /* 上傳格式顯示 */

"imagecompressenable": true, /* 是否壓縮,預設是true */

"imagecompressborder": 1600, /* 壓縮最長邊限制 */

"imageinsertalign": "none", /* 插入的浮動方式 */

"imageurlprefix": "", /* 訪問路徑字首 */

"imagepathformat": "/ueditor/jsp/upl

returnuploadimage rui = null;

final listruilist = new arraylist();

for (final multipartfile file : files)

string result = json.tojsonstring(rui);// 這邊就是為了返回給ueditor做的格式轉換

response.getwriter().write(result);

return null;

}

JSP之8種HTTP的請求方式

序號 請求方式 主要功能 1optiones 返回伺服器針對特定資源所支援的http請求方法,也可以利用向web伺服器傳送 的請求來測試伺服器的功能性 2head 向伺服器索與get請求相一致的響應,只不過響應體將不會被返回。這一方法可以再不必傳輸整個響應內容的情況下,就可以獲取包含在響應小訊息頭中...

mysql8 解壓版配置

mysql 設定mysql客戶端預設字符集 default character set utf8 mysqld 設定3306埠 port 3306 設定mysql的安裝目錄 basedir e mysql mysql 8.0.20 winx64 設定mysql資料庫的資料的存放目錄 datadir ...

IE8 正式版發布

ie8正式版終於發布了,一直使用ie的最新版本,無論是測試還是正式版都會第一時間使用,期望微軟能夠給人欣喜。windows xp 64位 windows vista 64 位 windows server 2003 64 位 windows server 2008 64 位 http downloa...