原创 Hibernate(select count(*))

關於在Hibernate裏使用select count(*) 返回值的問題說明 由於我使用的是Hibernate 3.2版本,經確認,這個版本已經把以前返回 Integer的改成了 Long, 因爲JPA裏面的返回值規定是Long, Hi

原创 characters cannot be mapped

some characters cannot be mapped using iso-8859-1 character encodingMyEclipse中新建一個.properties文件,如果輸入中文保存時就會提示錯誤Reason:s

原创 new null

 String是一個類,String   s   =   new   String()的時候,建立一個String對象,並把這個對象的引用賦給變量s,s是指向一個String對象的引用。     而String   s=null時,沒有建

原创 關於js中"window.location.href"、"location.href"、"parent.location.href"、"top.location.href"的用法

關於js中"window.location.href"、"location.href"、"parent.location.href"、"top.location.href"的用法 "window.location.href"、"locat

原创 Hibernate中 一 二級緩存及查詢緩存學習總結

Hibernate中 一 二級緩存及查詢緩存的學習總結 文章分類:Java編程 關鍵字: hibernate cache 最近趁有空學習了一下Hibernate的緩存,其包括一級緩存,二級緩存和查詢緩存(有些是參照網絡資源的):一、一

原创 excption

struts2異常處理   Struts2的異常處理機制: 任何成熟的MVC框架都應該提供成就的異常處理機制。Strut2也不例外。Struts2提供了一種聲明式的異常處理方 式。Struts2也是通過配置的攔截器來實現異常處理機制的。