Multiple annotations found at this line: - SimpleDateFormat cannot be resolved to a type 缺少import 另外两个类。 废话不多说,上图 只要多引用这两个类,就可以了 这个方法是百度看到的vsubram2的答案点击,进入原答案的网页 相关文章: 2021-12-23 2021-10-19 2021-08-22 2021-07-03 2021-10-12 2020-03-01 2021-06-29 2021-08-06