原创 findByNamedParam

import java.util.List;import org.springframework.orm.hibernate3.HibernateTemplate;import org.springframework.orm.hiberna

原创 mybatis配置xml的一個文件

<!-- N_模糊查詢與分頁查詢返回模板 --> <resultMap type="com.itrus.msign.entity.Contract" id="selectconinfo"> <id column="id" proper

原创 HttpURLConnection發送post請求信息

public static void testHttpQuest() { // {'pfxInfo':'no','isPfx':'no','signInfo':'中文','passCode':'','signType':'yes'}

原创 java定時執行程序

從某一時刻開始執行,每隔多長時間執行一次。 private static void test3() { Calendar twentyOne = Calendar.getInstance();         twentyOne.set

原创 java上傳數據

function selectSeal() {document.getElementById("sealinfo").click();}function updateSeal(sealp_w_picpathupdateId) {var se

原创 spring獲取值

表明PropertyPlaceholderConfigurer是承擔properties讀取任務的類。 下面的類繼承PropertyPlaceholderConfigurer,通過重寫processProperties方法把properti

原创 springmvc攔截器

package com.itrus.msign.web; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse

原创 我的友情鏈接

51CTO博客開發

原创 PropertyPlaceholderConfigurer

package com.itrus.define;import java.util.HashMap;import java.util.Map;import java.util.Properties;import org.springfram

原创 hibernate中get方法和load方法的根本區別

hibernate中get方法和load方法的根本區別 如果你使用load方法,hibernate認爲該id對應的對象(數據庫記錄)在數據庫中是一定存在的,所以它可以放心的使用,它可以放心的使用代理來延遲加載該對象。在用到對象中的其他屬性數

原创 <context:annotation-config/>

鏈接:http://blog.csdn.net/baple/article/details/16864175鏈接:http://blog.csdn.net/Baple/article/details/16864835傳統的bean聲明:<b

原创 HibernateTemplate

在學spring,看到一個帖子,問HibernateTemplate是不是自己有事務,大家都說有。如果有,那爲什麼需要在Spring的配置文件中配置事務呢?看了看HibernateTemplate的代碼,也看不出來故請教大家:Hiberna

原创 web-inf 文件

把那些限制訪問的資源(比如說jsp源代碼)放到Web應用的WEB-INF目錄下,對於/web-INF/及其子目錄,不允許直接的公共訪問,所以就可以起到保護這些代碼未經授權的訪問和窺視,更好的保護了源代碼(19頁)。      這麼書只是對這

原创 讀取單個醫生超過2000份病例報錯

今天在修改search的建立索引的程序的時候,發現了這個錯誤 使用jdbc讀取SQLServer2005的一個表全部記錄,該表具有10W記錄,結果發生以下錯誤:Java代碼 com.microsoft.sqlserver.jdbc.SQLS

原创 我的友情鏈接

51CTO博客開發