2015年7月9日
摘要: web.xml Archetype Created Web Application contextConfigLocation classpath:applicationContext.xml org.sprin... 阅读全文
posted @ 2015-07-09 14:28 jingyunyb 阅读(691) 评论(1) 推荐(1) 编辑
  2015年3月10日
摘要: 1、取消懒加载Configuration cfg = new Configuration().configure();cfg.addClass(Vm.class);//设置取消懒加载cfg.getCollectionMapping("com.chinac.chs.pojo.Room.pools").... 阅读全文
posted @ 2015-03-10 17:57 jingyunyb 阅读(237) 评论(0) 推荐(0) 编辑
  2014年12月15日
摘要: JAXB可以实现XML和Object的自动转换,这样我们就不用再自己写xml的解析了。1、从xml文件读取自动转换成Object2、从xml字符串读取自动转换成Object3、把对象转化成xml输出到控制台4、把对象转化成xml输出到文件5、把对象转化成xml字符串vdi.xml ... 阅读全文
posted @ 2014-12-15 09:53 jingyunyb 阅读(1095) 评论(0) 推荐(0) 编辑
  2014年10月7日
摘要: 阅读全文
posted @ 2014-10-07 13:52 jingyunyb 阅读(105) 评论(0) 推荐(0) 编辑
  2014年8月6日
摘要: 指定文件的默认打开方式Window - Preferences - General - Editors - File Associations - 选择文件类型指定Associated editors(如xml指定XML Editor) - Default选择xml - open with - xm... 阅读全文
posted @ 2014-08-06 09:33 jingyunyb 阅读(758) 评论(0) 推荐(0) 编辑
  2014年8月4日
摘要: http://www.software8.co/wzjs/java/1770.htmlBufferedInputStream是一个带有缓冲区的输入流,通常使用它可以提高我们的读取效率,现在我们看下BufferedInputStream的实现原理:BufferedInputStream内部有一个缓冲区... 阅读全文
posted @ 2014-08-04 10:54 jingyunyb 阅读(536) 评论(1) 推荐(0) 编辑
  2014年7月31日
摘要: 一、XEN API•VDI clone (session session_id, VDI vdi, Map[string,string] driver_params) Take an exact copy of the VDI and return a reference to the new di... 阅读全文
posted @ 2014-07-31 11:00 jingyunyb 阅读(586) 评论(0) 推荐(0) 编辑
  2014年7月21日
摘要: 一、 存储服务器内容录入 *所在集群 ... 阅读全文
posted @ 2014-07-21 16:31 jingyunyb 阅读(319) 评论(0) 推荐(0) 编辑
  2014年7月4日
摘要: Hibernate中的Session是一级缓存,可以理解为进程级(是线程吧)的缓存,在进程(是线程吧)运行期间一直存在。session可以理解为一个可以操作数据库的对象,该对象中有操作数据库的方法。在Java里面,缓存通常是指Java对象的属性占用的内存空间,通常是一些集合类型的属性。在Sessio... 阅读全文
posted @ 2014-07-04 13:37 jingyunyb 阅读(1330) 评论(0) 推荐(0) 编辑
  2014年7月1日
摘要: Spring中通过Propagation来设置事务的传播属性的,在这个属性中提供了我们其中关于事务传播的特性:1.PROPAGATION_REQUIRED:支持当前事务,如果当前没有事务,就新建一个事务。这是最常见的选择。 2.PROPAGATION_SUPPORTS:支持当前事务,如果当前没有事务... 阅读全文
posted @ 2014-07-01 20:22 jingyunyb 阅读(468) 评论(0) 推荐(0) 编辑