ssh框架常見錯誤以及問題描述和解決辦法

2021-08-28 17:59:58 字數 1423 閱讀 1694

1.could not publish server configuration for tomcat v8.5 server at localhost

解決辦法:刪除專案中的tomcat,重新部新增

2.hibernate:batch update returned unexpected row count from update [0]; actual row count: 0; expected 1:

描述:我在執行更改操作時原本不更,其中id設定了主鍵自增。

在執行更改操作時jsp頁面沒有回顯id,更該提交的時候報錯

解決方式:其他的**沒有錯誤時,在更該頁面時候加上設定為主鍵的屬性,如果不想顯示的話可以隱藏
3.org.hibernate.stalestateexception: batch update returned unexpected row count from update [0]

問題描述:資料庫設定的主鍵自增為native,在對比其他模組更改操作沒有問題,仔細對比之下發現在更改頁面該的name屬性寫錯了,錯誤原因是在執行更改操作時由於找不到該包含該主鍵的物件

解決方式:在對比正常的更新語句時,發現多更新了乙個主鍵,所以報錯,將name屬性改正過來就可以了。

正確的sql:

update

salary

set salary_empname=?,

salary_empbasesalary=?,

salary_empreward=?,

salary_empextraincome=?,

salary_level=?,

salary_bank=?,

salary_bancardnum=?,

salary_othersincome=?,

salary_outmoney=?,

salary_finalmoney=?

where

salary_empid=?

錯誤的sql:

update

salary

setsalary_empid=?``

salary_empname=?,

salary_empbasesalary=?,

salary_empreward=?,

salary_empextraincome=?,

salary_level=?,

salary_bank=?,

salary_bancardnum=?,

salary_othersincome=?,

salary_outmoney=?,

salary_finalmoney=?

where

salary_empid=?```

ssh框架搭建錯誤集合

1,把jsp放入到web inf view目錄下,struts2.xml配置 web inf view home.jsp,訪問404的原因?解決方法 要新增struts2 convention plugin 在struts2 lib目錄下有 外掛程式,同時此外掛程式依賴asm commons 3.3...

什麼是SSH 以及常見的ssh 功能

ssh基本用法 執行上面的命令以後,系統會出現一系列提示,可以一路回車。其中有乙個問題是,要不要對私鑰設定口令 passphrase 如果擔心私鑰的安全,這裡可以設定乙個。執行結束以後,在 home ssh 目錄下,會新生成兩個檔案 id rsa.pub和id rsa。前者是你的公鑰,後者是你的私鑰...

SSH框架問題記錄

column 將實體 bean 中的屬性對映到表中的列。column name columnname 1 boolean unique default false 2 boolean nullable default true 3 boolean insertable default true 4 ...