SSH框架遭遇代碼錯誤

1.

No result stype specified for result named 'success'

        <package name="default" namespace="/"  extends="struts-default">

2.

UserTable is not mapped [from UserTable]; nested exception i

    this.getHibernateTemplate().find(); 出錯。   在ssh中hql = “from user”,其中的user爲實體類而非指定的數據庫。

3.

Exception occurred during processing request: null

      在注入dao,service,action 時未注意到其中參數應該對應方法中的參數。尤其注意大小寫。此類錯誤大抵是因爲Spring中配置出錯了,應該細心檢查配置問題。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章