09 2012 档案
毫秒转日期
摘要:DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); long now = System.currentTimeMillis(); long n = new Long("1347008341011"); Calendar calendar = Calendar.getInstance(); calendar.setTimeInMillis(n); System.out.println(now + " = " + formatter.format... 阅读全文
posted @ 2012-09-28 16:57 双面煎蛋 阅读(2715) 评论(0) 推荐(0) 编辑
Mysql Merge表
摘要:转载地址:http://database.51cto.com/art/201010/230148.htm在Mysql数据库中,Mysql Merge表有点类似于视图。下面就让我们来一起了解一下Mysql Merge表都有哪些优点,希望对您能有所帮助。Mysql Merge表的优点:A: 分离静态的和动态的数据B:利用结构接近的的数据来优化查询C: 查询时可以访问更少的数据D:更容易维护大数据集E: 可以通过修改.mrg文件来修改Merge表,当然也可以用alter进行修改,修改后要通过FLUSH TABLES刷新表缓存,此法可以动态增加减少子表创建方法,例:mysql>CREATE TA 阅读全文
posted @ 2012-09-28 11:33 双面煎蛋 阅读(386) 评论(0) 推荐(0) 编辑
jsf session的获取和添加
摘要:转载地址:http://hi.baidu.com/lvzhnan/item/c2a46115d235b70ad0d66d3fjsf session 添加 获取1、session的添加 FacesContext facesContext = FacesContext.getCurrentInstance(); ExternalContext extContext =facesContext.getExternalContext(); this.session =(HttpSession)extContext.getSession(true); this.session.s... 阅读全文
posted @ 2012-09-25 17:30 双面煎蛋 阅读(3899) 评论(0) 推荐(1) 编辑
tomcat多开造成的端口占用
摘要:错误信息:2011-2-20 14:17:41 org.apache.coyote.http11.Http11AprProtocol init严重: Error initializing endpointjava.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í??…………2011-2-20 14:17:41 org.apache.catalina.startup.Catalina load严重: Catalina.startLifecycleExcep 阅读全文
posted @ 2012-09-20 11:04 双面煎蛋 阅读(7310) 评论(0) 推荐(0) 编辑
调用Window Media Player 播放器代码
摘要:转载地址:http://awung.blog.sohu.com/28657258.html<html><head><title>Window Media Player 播放器</title><style>body { overflow:auto; font-size:12px; cursor:default;}#table01 { font-size:12px; background-Color:black; color:white; text-align:center;}#playListTit... 阅读全文
posted @ 2012-09-11 17:12 双面煎蛋 阅读(3267) 评论(1) 推荐(0) 编辑
Spring的PropertyPlaceholderConfigurer应用
摘要:转载地址:http://www.cnblogs.com/yl2755/archive/2012/05/06/2486752.htmlSpring 利用PropertyPlaceholderConfigurer占位符1. PropertyPlaceholderConfigurer是个bean工厂后置处理器的实现,也就是 BeanFactoryPostProcessor接口的一个实现。PropertyPlaceholderConfigurer可以将上下文(配置文 件)中的属性值放在另一个单独的标准java Properties文件中去。在XML文件中用${key}替换指定的properties文件 阅读全文
posted @ 2012-09-10 11:18 双面煎蛋 阅读(31745) 评论(0) 推荐(1) 编辑
dos
摘要:1、复制文件夹及子文件夹中所有扩展名为txt的文件① xcopy c:\folderSource\*.txt c:\folderTarget/s (子目录也被复制)②将以下内容在“命令提示符”中运行,也可以完成。(不保留子目录)===============cd /d c:\folderSourcedir *.txt /s/b/a>list.inifor /f "delims=" %e in (list.ini) do copy "%e" c:\folderTarget\=============== 阅读全文
posted @ 2012-09-05 17:13 双面煎蛋 阅读(219) 评论(0) 推荐(0) 编辑
常见异常
摘要:[java]1、nested exception is java.lang.OutOfMemoryError: Java heap space:list[hibernate]1、should be mapped with insert="false" update="false":存在重复映射的字段;2、Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTupli 阅读全文
posted @ 2012-09-05 14:15 双面煎蛋 阅读(6672) 评论(0) 推荐(0) 编辑