The method setDate(int, java.sql.Date) in the type PreparedStatement is not applicable for the arguments (int, java.util.Date)
Date d = new Date();
pstmt.setDate(1,d.getTime());即可。
Date date = new Date(); date.setDate(date.getDate());