12张表都建好以后
在quartz.xml大致配置
<bean>
<property name="jobDetails">
<list>
<ref bean="selecttoBatch" />
</list>
...
</bean>
<bean id="selecttoBatch"
class=".....">
<property name="shouldRecover" value="true" />
<property name="durable" value="true" />
<property name="targetObject" ref="getcoreBatch" />
<property name="targetMethod" value="runBatch" />
</bean>
写好“getcoreBatch”对应的类
启动tomcat报错:
Unable to serialize JobDataMap for insertion into database because the value of property 'targetObject' is not serializable:
但是getcoreBatch对应的类已经实现,请问这哪还要修改?
注:这个配置之前在oralce上面批处理是可以跑的,在迁移到mysql后,我重新建表
------解决思路----------------------
类没有实现序列化接口