SSH三大框架經常發生的異常以及解決方案

  1. java.lang.IllegalArgumentException: attempt to create saveOrUpdate event with null entity異常

  2. @Namespace("/")
    @SuppressWarnings("serial")
    @Controller("regeditAction")
    @Scope("prototype")
    public class RegeditAction extends ActionSupport {
    @Resource
    private Regedit regedit;

  3. 要加入get方法,否則傳過去的值就是空值

  4. public Regedit getRegedit(){
    
      return regedit;

 

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