- 浏览: 34704 次
- 性别:
- 来自: 北京
-
最新评论
文章列表
String date=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
long time=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(date).getTime();
int changeTime=(int) (time/1000);
使用long类转换 首先得到日期类型然后得到时间转换成long 在long类型转换成int类型 存放在数据库中
要是想从数据库中的到日期类型需要在 sql语句中加上
FRO ...
在jsp中首先应该实现form表格
<form style="margin-top: 20px;" method="get" id="Form">
<div class="main">
<div class="indexBg">
<div class="pageBox">
<div class="inputBox clearfix">
<!-- 需要在写一个 ...
在学习 spring 过程中遇见了种种不同的异常错误,这里做了一下总结,希望遇见类似错误
的同学们共勉一下。
1. 错误一
Error creating bean with name 'helloServiceImpl' defined in class path resource [springservice.xml]: Error setting property values; nested exception is
org.springframework.beans.NotWritablePropertyException: Invalid property 'helloDao' of ...