- 博客(5)
- 收藏
- 关注
转载 js 对时间的操作 js 处理json时间格式
js格式化当前时间为yyyy-mm-dd形式: 点击打开链接 function getNowFormatDate(day) { //var day = new Date(); var Year = 0; var Month = 0; var Day = 0; var CurrentDate = ""; //初始化时间
2015-06-15 18:47:30 626
转载 hibernate的注解属性mappedBy详解
hibernate的注解属性mappedBy详解 博客分类: Hibernate hibernatemappedByJoinColumn mappedBy: 1>只有OneToOne,OneToMany,ManyToMany上才有mappedBy属性,ManyToOne不存在该属性; 2>mappedBy标签一定是定义在被拥有方的,他指向拥有方; 3>map
2015-06-14 20:07:11 644
原创 css 动画效果1
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String base = request.getScheme()+"://"+request.getServerN
2015-06-14 15:09:04 345
转载 spring mvc前台时间字符串到后台Date的转换
无意中发现对于时间字符串转Date类,根本不用自己去写转换类,spring mvc已经实现了该功能,还是基于注解的,轻松省事,使用org.springframework.format.support.FormattingConversionServiceFactoryBean 之后,只要在vo里加注解就行了 Java代码 @DateTimeFormat(patte
2015-06-05 11:44:38 483
原创 Java 对日期的操作
DateFormat sdf=new SimpleDateFormat("yyyy-MM-dd"); Date parse = null; try { parse = sdf.parse(beginDate); } catch (ParseException e) { //e.printStackTrace(); Date d1 = new Date(); d1
2015-06-04 16:40:19 347
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人