java日期字符串转LocalDate
解决方法:
public static LocalDate getLocalDate(String date){
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
Date TempDate= null;
try {
TempDate = sdf.parse(date);
} catch (ParseException e) {
e.printStackTrace();
}
return LocalDate.parse(sdf.format(TempDate));
}
向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti