大漠駝鈴

          置身浩瀚的沙漠,方向最為重要,希望此blog能向大漠駝鈴一樣,給我方向和指引。
          Java,Php,Shell,Python,服務(wù)器運(yùn)維,大數(shù)據(jù),SEO, 網(wǎng)站開發(fā)、運(yùn)維,云服務(wù)技術(shù)支持,IM服務(wù)供應(yīng)商, FreeSwitch搭建,技術(shù)支持等. 技術(shù)討論QQ群:428622099
          隨筆 - 238, 文章 - 3, 評論 - 117, 引用 - 0
          數(shù)據(jù)加載中……

          JAVA框架

          Spring,Mybatis,Hibernate
          To prevent a memory leak, the JDBC Driver has been forcibly unregistered--有關(guān)Tomcat自動宕機(jī)的解決方案
               摘要: To prevent a memory leak, the JDBC Driver has been forcibly unregistered的解決方案。  閱讀全文

          posted @ 2016-08-03 10:59 草原上的駱駝 閱讀(12596) | 評論 (0)  編輯

          MAVEN命令不斷完善中。。。

          posted @ 2016-02-15 17:13 草原上的駱駝 閱讀(1151) | 評論 (0)  編輯

          Row was updated or deleted by another transaction

          posted @ 2010-08-11 16:48 草原上的駱駝 閱讀(7352) | 評論 (1)  編輯

          Spring中常用的hql查詢方法(getHibernateTemplate())

          posted @ 2010-07-22 14:15 草原上的駱駝 閱讀(895) | 評論 (0)  編輯

          struts2.1.6中的datatimepicker 設(shè)置

          posted @ 2009-05-28 11:30 草原上的駱駝 閱讀(554) | 評論 (2)  編輯

          JSF學(xué)習(xí)筆記開始

          posted @ 2009-05-15 21:49 草原上的駱駝 閱讀(242) | 評論 (0)  編輯

          struts2中如何獲取Session,HttpServletRequest,HttpServletResponse

          posted @ 2009-03-29 16:40 草原上的駱駝 閱讀(3774) | 評論 (0)  編輯

          No mapping found for dependency [type=java.lang.String, name='actionPackages']

          posted @ 2009-03-29 11:33 草原上的駱駝 閱讀(9645) | 評論 (5)  編輯

          Eclipse+Maven+jetty+Struts2+Hibernate3開發(fā)注冊登陸模塊

          posted @ 2009-03-26 18:59 草原上的駱駝 閱讀(2614) | 評論 (0)  編輯

          記事貼2:Struts的Validator并不好用!轉(zhuǎn)載
               摘要: 使用正則表達(dá)式,使email字段中不能輸入漢字。最近用AppFuse開發(fā)一個BS的系統(tǒng),用的是Struts的MVC部分,使用Validator進(jìn)行驗證,結(jié)果發(fā)現(xiàn)Validator的驗證EMail并不好,EMail中可以輸入漢字,然后到服務(wù)器端驗證,我配置了客戶端驗證,也可以驗證Email的格式,但如果輸入的是正確的格式,但是包含漢字它卻驗證不出來,但到了后臺又管用了,不知道為什么,時間緊,我也沒時間去研究它,找到一個方法可以解決這個問題,雖不完美,卻也湊合:

            閱讀全文

          posted @ 2009-03-19 17:45 草原上的駱駝 閱讀(281) | 評論 (0)  編輯

          hibernate的 fetch lazy inverse cascade
               摘要: 1.fetch 和 lazy 主要用于級聯(lián)查詢(select) 而 inverse和cascade主要用于級聯(lián)增、加刪、除修改(sava-update,delete)
          2.想要刪除父表中的記錄,但希望子表中記錄的外鍵引用值設(shè)為null的情況:
          父表的映射文件應(yīng)該如下配置:






          inverse="false"是必須的,cascade可有可無,并且子表的映射文件中inverse沒必要設(shè)置,cascade也可以不設(shè)置,如果設(shè)置就設(shè)置成為cascade="n  閱讀全文

          posted @ 2009-03-09 19:41 草原上的駱駝 閱讀(542) | 評論 (0)  編輯

          JPA annotation 筆記
               摘要: @Id 顧名思義,就不多說了。

          @GeneratedValue:主鍵的產(chǎn)生策略,通過strategy屬性指定。
          默認(rèn)情況下,JPA自動選擇一個最適合底層數(shù)據(jù)庫的主鍵生成策略,如SqlServer對應(yīng)identity,MySql對應(yīng)auto increment。
          在javax.persistence.GenerationType中定義了以下幾種可供選擇的策略:
          1) IDENTITY:表自增鍵字段,Oracle不支持這種方式;
          2) AUTO: JPA自動選擇合適的策略,是默認(rèn)選項;
          3) SEQUENCE:通過序列產(chǎn)生主鍵,通過@SequenceGenerator注解指定序列名,MySql不支持這種方式;
          4) TABLE:通過表產(chǎn)生主鍵,框架借由表模擬序列產(chǎn)生主鍵,使用該策略可以使應(yīng)用更易于數(shù)據(jù)庫移植。   閱讀全文

          posted @ 2009-02-22 22:08 草原上的駱駝 閱讀(1659) | 評論 (0)  編輯

          A Blog Application with Warp (continued)(2)
               摘要: A Blog Application with Warp (continued)

          First check out the previous tutorial on creating a Blog application to get yourself going. In this article, I'll show you how to add forms and a bit of interactivity. You will learn the following Warp concepts:

          * Event Handling and Navigation
          * Events and the Button component
          * The TextField and TextArea components
          * Page scopes

          Continuing from the previous tutorial, let's now make a "compose new ent  閱讀全文

          posted @ 2009-02-17 16:30 草原上的駱駝 閱讀(211) | 評論 (0)  編輯

          A Blog Application with Wideplay's Warp Framework(1)
               摘要: A Blog Application with Wideplay's Warp Framework

          First check out the Hello World example to get yourself going. In this article, I'll show you how to knock together a simple Blog application where you can browse and read blog entries. You will learn the following Warp concepts:

          * Page Injection
          * RESTful behavior and the HyperLink component
          * The Table and Column components
          * Simple Internationalization (i18n)

            閱讀全文

          posted @ 2009-02-17 16:29 草原上的駱駝 閱讀(275) | 評論 (0)  編輯

          A Hello World Application in Warp

          posted @ 2009-02-17 16:28 草原上的駱駝 閱讀(293) | 評論 (0)  編輯

          Full JAVA框架 Archive

          主站蜘蛛池模板: 临海市| 香河县| 筠连县| 体育| 集贤县| 安吉县| 丹棱县| 南安市| 砚山县| 涞源县| 澳门| 东至县| 阿拉善左旗| 黑龙江省| 宜宾市| 平顶山市| 禹城市| 德州市| 偃师市| 武汉市| 湖北省| 宁国市| 新乐市| 德格县| 肇庆市| 鄂尔多斯市| 都匀市| 增城市| 固阳县| 壤塘县| 河北省| 英德市| 连江县| 纳雍县| 额尔古纳市| 辽宁省| 连城县| 黄陵县| 灵丘县| 和平区| 鹤壁市|