java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowe

緣由:在service層設置了只讀。@Transactional(readOnly = true)io 而更新的方法沒有把可讀設置爲FALSE。解決辦法是在方法上加上readOnly=FALSEservice
相關文章
相關標籤/搜索