我尝试使用以下内容,
List<JobExecution> jobExecutions = getJdbcTemplate().query("SELECT JOB_EXECUTION_ID, START_TIME, END_TIME, STATUS, EXIT_CODE, EXIT_MESSAGE, CREATE_TIME, LAST_UPDATED, VERSION FROM BATCH_JOB_EXECUTION ORDER BY JOB_EXECUTION_ID ASC, new BeanPropertyRowMapper<JobExecution>(JobExecution.class));
它返回以下异常:
无法实例化 bean 类[org.springframework.batch.core.JobExecution:它是一个抽象类吗?;
有人知道这里发生了什么吗?谢谢!