问题遇到的现象和发生背景
MySql中datetime类型,在JAVA中用java.util.Date类型变量 和 java.sql.Date类型变量怎么接收呢?
报错:
Cannot set Date: incompatible types, cannot convert java.time.LocalDateTime to java.util.Date
Cannot set Date: incompatible types, cannot convert java.time.LocalDateTime to java.sql.Date
请问怎么解决呢?