1.在Struts標籤結束時少了結束符,或者缺少’/>’
如:
<s:property value="currPage" > 缺少'/'的錯誤
<s:property value="curr_name"/ > 正確結束
錯誤資訊:
tag s:property must be empty, but is not
tag s:property must be empty, but is not
2.<frameset></frameset>
必須在 head 和body之間,要不然會什麼都不顯示
3.pageContext.request.contextPath一開始是“/“
There is no Action mapped for namespace [/] and action name [department_findAll] associated with context path [].
則是名稱空間錯誤。
5.遇到如下的錯誤
Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker
請在service層上面加上一個@Transactional
如果出現了以下的錯誤,說明你的Hibernate 版本不對應,我就是因為sessionFactory 用的Hibernate4 在
transaction 配置中 引入的Hibernate5
java.lang.IllegalStateException: No value for key [[email protected]] bound to thread [http-nio-8080-exec-9]
写评论
很抱歉,必須登入網站才能發佈留言。