摘要: 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) 编辑
摘要: 转载地址: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) 编辑
摘要: 转载地址: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 双面煎蛋 阅读(3900) 评论(0) 推荐(1) 编辑
摘要: 错误信息: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) 编辑
摘要: 转载地址: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 双面煎蛋 阅读(3270) 评论(1) 推荐(0) 编辑
摘要: 转载地址: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) 编辑
摘要: 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 双面煎蛋 阅读(6683) 评论(0) 推荐(0) 编辑
摘要: 转载地址:http://hi.baidu.com/jml0912/item/3f1d103c6d43d5b0134b14a2 http://blog.sina.com.cn/s/blog_7fa2bcf50100zfi3.htmlmyeclipse中tomcat内存大小的设置刚刚安装了myeclipse9.0,又配置了tomcat7.0,想用ssh框架搭个项目试试tomcat7.0,没想到刚启动项目就会报错,在tomcat6.0中就不会有问题,上网查了那些都不起作用,后来看到这个,配置下,哦了,原来是tomcat7.0 配置问题,写下来!!在 myeclipse中出现:java.la... 阅读全文
posted @ 2012-08-29 14:55 双面煎蛋 阅读(10226) 评论(0) 推荐(0) 编辑
摘要: <c:forEach />标签的使用备注:无法循环打印信息可能的原因:1、引入包改成http://java.sun.com/jsp/jstl/core或者http://java.sun.com/jstl/core;2、jstl包的版本不正确。一、xhtml代码<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jsp/jstl/core"><c:forEach items="#{usersManageImpl.menuMan 阅读全文
posted @ 2012-07-24 18:37 双面煎蛋 阅读(5377) 评论(0) 推荐(0) 编辑