列表頁無法顯示
Googlechrome 要把顯示大小調(diào)到90%以下
Firefox 要把顯示大小調(diào)到120以上
Googlechrome 要把顯示大小調(diào)到90%以下
Firefox 要把顯示大小調(diào)到120以上
2016-09-16
hibernate 5.0以上出現(xiàn)
Query query = session.createQuery(hql);處拋出 UndeclaredThrowableException
把hibernate版本換到4.2以下就能解決
Query query = session.createQuery(hql);處拋出 UndeclaredThrowableException
把hibernate版本換到4.2以下就能解決
2016-09-15
我下的新struts包中,并沒有ng.filter包,應(yīng)該是
org.apche.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apche.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
org.apche.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apche.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
2016-09-14
<result name="input">/users/Users_login.jsp</result>
2016-09-14
老師講得很好,斷斷續(xù)續(xù)的終于看完了,也敲了一遍,收獲還是有的...
用5.2.2出現(xiàn)No log4j2 configuration file found的,解決方法:http://blog.163.com/kele_lipeng/blog/static/81345278201652544727449/
2016-09-11
struts-2.5.2中,沒有servletcontext,其實只要有servletrequest和servletresponse就夠了,session和application可以通過以下方式在需要的時候進(jìn)行獲取;
HttpSession session = request.getSession();
ServletContext application = request.getServletContext();
HttpSession session = request.getSession();
ServletContext application = request.getServletContext();
2016-09-11