@Override
public List<EventDetails> process(int event_status) throws EventDetailDataException {
String sql="select * from MicroServiceEventDetails where event_status=?";
List<EventDetails> EventDetailsList = template.query(sql, new BeanPropertyRowMapper<EventDetails>(EventDetails.class),new Object[] {event_status});
return EventDetailsList;
}
2017年4月2日上午6時26分04秒org.springframework.scheduling.support.TaskUtils $ LoggingErrorHandler handleError 嚴重:在計劃任務中發生意外的錯誤。 java.lang.NoSuchMethodError:org.springframework.core.convert.support.DefaultConversionService.getSharedInstance()Lorg/springframework/core/convert/ConversionService; 在org.springframework.jdbc.core.BeanPropertyRowMapper。(BeanPropertyRowMapper.java:91) 在com.syntel.boot.dao.EventProcessDaoImpl.process(EventProcessDaoImpl.java:38) 在com.syntel.boot.services.EventDetailServiceImpl .process(EventDetailServiceImpl.java:73) 在com.syntel.boot.scheduler.microeventschudler.eventExcuter(microeventschudler.java:30) 在sun.reflect.NativeMethodAccessorImpl.invoke0(本機方法) 在sun.reflect.NativeMethodAccessorImpl。在org.springframework.scheduling的java.lang.reflect.Method.invoke(Method.java:498) 處調用(NativeMethodAccessorImpl.java:62) (在DelegatingMethodAccessorImpl.java:43) 。 support.ScheduledMethodRunnable.run(S cheduledMethodRunnable.java:65) 在org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) 在java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511) 是java。 util.concurrent.FutureTask.runAndReset(FutureTask.java:308) 在java.util.concurrent.ScheduledThreadPoolExecutor中的$ ScheduledFutureTask.access $ 301(ScheduledThreadPoolExecutor.java:180) 在java.util.concurrent.ScheduledThreadPoolExecutor中的$ ScheduledFutureTask.run(的ScheduledThreadPoolExecutor .java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread .RUN(Thread.java:745)Lorg/springframework/core/convert/ConversionService;