大漠驼铃

置身浩瀚的沙漠,方向最为重要,希望此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 草原上的骆驼 阅读(12284) | 评论 (0)  编辑

MAVEN命令不断完善中。。。

posted @ 2016-02-15 17:13 草原上的骆驼 阅读(1112) | 评论 (0)  编辑

Row was updated or deleted by another transaction

posted @ 2010-08-11 16:48 草原上的骆驼 阅读(7281) | 评论 (1)  编辑

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

posted @ 2010-07-22 14:15 草原上的骆驼 阅读(874) | 评论 (0)  编辑

struts2.1.6中的datatimepicker 设置

posted @ 2009-05-28 11:30 草原上的骆驼 阅读(534) | 评论 (2)  编辑

JSF学习笔记开始

posted @ 2009-05-15 21:49 草原上的骆驼 阅读(228) | 评论 (0)  编辑

struts2中如何获取Session,HttpServletRequest,HttpServletResponse

posted @ 2009-03-29 16:40 草原上的骆驼 阅读(3757) | 评论 (0)  编辑

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

posted @ 2009-03-29 11:33 草原上的骆驼 阅读(9627) | 评论 (5)  编辑

Eclipse+Maven+jetty+Struts2+Hibernate3开发注册登陆模块

posted @ 2009-03-26 18:59 草原上的骆驼 阅读(2597) | 评论 (0)  编辑

记事贴2:Struts的Validator并不好用!转载
     摘要: 使用正则表达式,使email字段中不能输入汉字。最近用AppFuse开发一个BS的系统,用的是Struts的MVC部分,使用Validator进行验证,结果发现Validator的验证EMail并不好,EMail中可以输入汉字,然后到服务器端验证,我配置了客户端验证,也可以验证Email的格式,但如果输入的是正确的格式,但是包含汉字它却验证不出来,但到了后台又管用了,不知道为什么,时间紧,我也没时间去研究它,找到一个方法可以解决这个问题,虽不完美,却也凑合:

  阅读全文

posted @ 2009-03-19 17:45 草原上的骆驼 阅读(259) | 评论 (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 草原上的骆驼 阅读(524) | 评论 (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 草原上的骆驼 阅读(1643) | 评论 (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 草原上的骆驼 阅读(192) | 评论 (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 草原上的骆驼 阅读(251) | 评论 (0)  编辑

A Hello World Application in Warp

posted @ 2009-02-17 16:28 草原上的骆驼 阅读(276) | 评论 (0)  编辑

Full JAVA框架 Archive