引入的包错误:import java.sql.Date,其实应该是import java.util.Date http://blog.sina.com.cn/s/blog_473f510a0100mrdk.html