大漠駝鈴

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

          JAVA框架

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

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

          MAVEN命令不斷完善中。。。

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

          Row was updated or deleted by another transaction

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

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

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

          struts2.1.6中的datatimepicker 設置

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

          JSF學習筆記開始

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

          struts2中如何獲取Session,HttpServletRequest,HttpServletResponse

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

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

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

          Eclipse+Maven+jetty+Struts2+Hibernate3開發注冊登陸模塊

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

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

            閱讀全文

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

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






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

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

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

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

          posted @ 2009-02-22 22:08 草原上的駱駝 閱讀(1664) | 評論 (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 草原上的駱駝 閱讀(214) | 評論 (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 草原上的駱駝 閱讀(280) | 評論 (0)  編輯

          A Hello World Application in Warp

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

          Struts2.0的Struts.properties(轉)

          posted @ 2009-02-14 21:09 草原上的駱駝 閱讀(400) | 評論 (0)  編輯

          Struts2.0標簽庫(三)表單標簽

          posted @ 2009-02-14 21:07 草原上的駱駝 閱讀(3430) | 評論 (0)  編輯

          Struts2.0標簽庫(二)數據標簽[轉]

          posted @ 2009-02-14 21:07 草原上的駱駝 閱讀(862) | 評論 (0)  編輯

          struts2 標簽學習
               摘要: struts2 標簽

          用過struts1.x的人都知道,標簽庫有html、bean、logic、tiles,
          而struts2.0里的標簽卻沒有分類,只用在jsp頭文件加上
          <%@ taglib prefix="s" uri="/struts-tags" %>
          就能使用struts2.0的標簽庫

          下面就介紹下每個標簽的用法(有錯請指正):
            閱讀全文

          posted @ 2009-02-14 21:05 草原上的駱駝 閱讀(4876) | 評論 (3)  編輯

          SiteMesh學習筆記1(一個優于Apache Tiles的Web頁面布局、裝飾框架)

          posted @ 2008-12-10 20:14 草原上的駱駝 閱讀(614) | 評論 (0)  編輯

          主站蜘蛛池模板: 云浮市| 泸水县| 康保县| 来凤县| 鸡西市| 寻乌县| 桦川县| 东平县| 鄂托克旗| 宜黄县| 汉沽区| 孟津县| 渝北区| 凉山| 龙岩市| 永嘉县| 无为县| 新郑市| 仪陇县| 屏南县| 磐石市| 云安县| 新建县| 平和县| 乌拉特前旗| 蚌埠市| 徐水县| 孝义市| 拉萨市| 罗平县| 连州市| 阿坝| 如东县| 都安| 宜君县| 三河市| 平凉市| 冀州市| 桐城市| 姚安县| 湄潭县|