To prevent a memory leak, the JDBC Driver has been forcibly unregistered--有關Tomcat自動宕機的解決方案
posted @ 2016-08-03 10:59 草原上的駱駝 閱讀(12584) | 評論 (0) 編輯
大漠駝鈴置身浩瀚的沙漠,方向最為重要,希望此blog能向大漠駝鈴一樣,給我方向和指引。
Java,Php,Shell,Python,服務器運維,大數據,SEO, 網站開發、運維,云服務技術支持,IM服務供應商, FreeSwitch搭建,技術支持等. 技術討論QQ群:428622099 隨筆 - 238, 文章 - 3, 評論 - 117, 引用 - 0
|
JAVA框架Spring,Mybatis,HibernateTo 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 草原上的駱駝 閱讀(12584) | 評論 (0) 編輯 Row was updated or deleted by another transactionposted @ 2010-08-11 16:48 草原上的駱駝 閱讀(7341) | 評論 (1) 編輯 struts2中如何獲取Session,HttpServletRequest,HttpServletResponseposted @ 2009-03-29 16:40 草原上的駱駝 閱讀(3771) | 評論 (0) 編輯 No mapping found for dependency [type=java.lang.String, name='actionPackages']posted @ 2009-03-29 11:33 草原上的駱駝 閱讀(9642) | 評論 (5) 編輯 Eclipse+Maven+jetty+Struts2+Hibernate3開發注冊登陸模塊posted @ 2009-03-26 18:59 草原上的駱駝 閱讀(2610) | 評論 (0) 編輯 記事貼2:Struts的Validator并不好用!轉載
摘要: 使用正則表達式,使email字段中不能輸入漢字。最近用AppFuse開發一個BS的系統,用的是Struts的MVC部分,使用Validator進行驗證,結果發現Validator的驗證EMail并不好,EMail中可以輸入漢字,然后到服務器端驗證,我配置了客戶端驗證,也可以驗證Email的格式,但如果輸入的是正確的格式,但是包含漢字它卻驗證不出來,但到了后臺又管用了,不知道為什么,時間緊,我也沒時間去研究它,找到一個方法可以解決這個問題,雖不完美,卻也湊合:
閱讀全文 posted @ 2009-03-19 17:45 草原上的駱駝 閱讀(273) | 評論 (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 草原上的駱駝 閱讀(536) | 評論 (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 草原上的駱駝 閱讀(1654) | 評論 (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 草原上的駱駝 閱讀(207) | 評論 (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 草原上的駱駝 閱讀(269) | 評論 (0) 編輯 |
|