亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

spring boot 能查詢,不能插入。

spring boot 能查詢,不能插入。

www說 2018-07-02 08:08:16
ERROR 5460 --- [nio-8080-exec-5] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.dao.TransientDataAccessResourceException: ### Error updating database. Cause: java.sql.SQLException: Could not retrieve transaction read-only status from server### The error may involve cz.java.mapper.AdminMapper.addAdminNav-Inline### The error occurred while setting parameters### SQL: INSERT INTO admin_nav(`text`,state,iconCls,pid,href) VALUES(?,?,?,?,?)### Cause: java.sql.SQLException: Could not retrieve transaction read-only status from server; SQL []; Could not retrieve transaction read-only status from server; nested exception is java.sql.SQLException: Could not retrieve transaction read-only status from server] with root causejava.sql.SQLException: Unknown system variable 'tx_read_only'
查看完整描述

1 回答

?
慕蓋茨4494581

TA貢獻1850條經驗 獲得超11個贊

sql寫錯了,具體的錯誤是因為表的屬性是只讀的。修改一下表的狀態

查看完整回答
反對 回復 2018-08-24
  • 1 回答
  • 0 關注
  • 1181 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號