修改ulimit值的学习点滴:
摘要:http://limimgjie.iteye.com/blog/691270
阅读全文
posted @
2012-09-27 15:53
网络大豆
阅读(182)
推荐(0) 编辑
JPA的一个blog
摘要:http://www.cnblogs.com/luxh/——————————————————————————————————————————————————————————————————有几篇JPA实现映射的文章,讲的不错 JPA的一对多映射(单向)http://www.cnblogs.com/luxh/archive/2012/05/27/2520322.htmlJPA的一对多映射(双向)http://www.cnblogs.com/luxh/archive/2012/05/27/2520501.htmlJPA的一对一映射http://www.cnblogs.com/luxh/archiv
阅读全文
posted @
2012-09-21 17:05
网络大豆
阅读(160)
推荐(0) 编辑
box2d-editor
摘要:http://code.google.com/p/box2d-editor/————————————————————————————————————————————————————————————————http://libgdx.badlogicgames.com/
阅读全文
posted @
2012-09-20 12:35
网络大豆
阅读(282)
推荐(0) 编辑
整理用Java实现数字转化成字符串左边自动补零方法
摘要:http://blog.csdn.net/yudaoai/article/details/4267899—————————————————————————————————————————————————————————— Java 中给数字左边补0 (1)方法一import java.text.NumberFormat; public class NumberFormatTest { public static void main(String[] args) { //待测试数据 int i = 1; //得到一个NumberFormat的实例 NumberFormat nf = Numbe.
阅读全文
posted @
2012-09-20 10:33
网络大豆
阅读(396)
推荐(0) 编辑
struts2 tag if NumberFormatException
摘要:http://www.4ucode.com/Study/Topic/367889————————————————————————————————————————————————————————今天用struts2的if标签作一个判断,死活到不了if里面,代码如下: <s:if test="namePinYin == 'a'">hello</s:if> 页面也不报错,而且也测试了namePinYin的确等于a 后来发现服务器报了个NumberFormatException,信息如下: Caught an exception while
阅读全文
posted @
2012-09-17 10:52
网络大豆
阅读(300)
推荐(0) 编辑
hibernate annotation 双向 one-to-one 注解
摘要:http://www.cnblogs.com/fancyzero/archive/2012/06/10/hibernate-one-to-one-annotation.html——————————————————————————————————————————————————————————环境:Hibernate3.3.1Maven3.0.4MySQL5.5.13Myeclipse8.6.1建表语句:DROPTABLEIFEXISTS`t_card`;CREATETABLE`t_card`(`cardId`int(10)unsignedNOTNULLAUTO_INCREMENT,`cardN
阅读全文
posted @
2012-09-13 15:20
网络大豆
阅读(347)
推荐(0) 编辑
Spring的ID增长器使用示例(MySql数据库)
摘要:http://blog.csdn.net/heyang78/article/details/2860695——————————————————————————————————————————————————————一般来说涉及数据库的应用中,表的主键有两种生成方案,一种是专门定义一个主键表,在其中放置一个自增长的字段为其它表提供主键;另一种是使用 Oracle的sequence。这两种方案都有一定麻烦,Spring为此专门提供了一个ID增长器以简化具体步骤,下文就是它的相关使用方法的,使用 的数据库是MySql5.归纳使用Spring的自增长ID生成器完成以下三步即可:1)配置自增长id生成器
阅读全文
posted @
2012-09-11 14:02
网络大豆
阅读(750)
推荐(0) 编辑
IE下 z-index 的各种坑
摘要:http://www.cnblogs.com/Darren_code/archive/2012/03/05/z-index.html#darren_10———————————————————————————————————————————————————————————— IE下 z-index 的各种坑 2012-03-05 21:40 by 聂微东, 6537 阅读, 23 ...
阅读全文
posted @
2012-09-08 11:37
网络大豆
阅读(266)
推荐(0) 编辑
Spring注入List和Map
摘要:http://hi.baidu.com/menglinxi_a/item/8e5d7f726605cd11d1dcb330———————————————————————————————————————————————————— 最近在工作上用上了Command模式,但在Spring上使用Command模式由于不能在代码中直接使用new,否则就不能使用其他配置在Spring中的DAO,所以需要把Command配置到Spring中。以下是一个<?xml version="1.0" encoding="UTF-8"?><beans xmlns
阅读全文
posted @
2012-09-07 13:46
网络大豆
阅读(335)
推荐(0) 编辑
Spring框架下获取Bean的几种方式
摘要:http://hi.baidu.com/black_zhu/item/4da962862965f1eae596e0d4————————————————————————————————————————————————————————Spring框架下获取Bean的几种方式 通过xml配置文件 bean配置在xml里面,spring提供多种方式读取配置文件得到ApplicationContext.第一种方式:FileSystemXmlApplicationContext通过程序在初始化的时候,导入Bean配置文件,然后得到Bean实例:ApplicationContext ac = new...
阅读全文
posted @
2012-09-07 10:16
网络大豆
阅读(302)
推荐(0) 编辑
去掉Form产生的空行
摘要:http://my.oschina.net/jing31/blog/6596______________________________________ form { margin: 0; padding: 0; } 搞定收工。
阅读全文
posted @
2012-09-03 15:17
网络大豆
阅读(202)
推荐(0) 编辑