New Date();报错

     New Date();时报错 The constructor Date() is undefined

是因为我在此的加载的类错了,删除有关Date的import语句(import java.sql.Date;)

导入import java.util.Date;

    今后注意类似情况的出现

猜你喜欢

转载自4636.iteye.com/blog/2316009