Java 石英晶体中的JDBCJobStore混淆
我正在使用Quartz JDBCJobStore,并有以下作业定义Java 石英晶体中的JDBCJobStore混淆,java,quartz-scheduler,Java,Quartz Scheduler,我正在使用Quartz JDBCJobStore,并有以下作业定义 JobDetail job=newJob(HelloJob.class).withIdentity("demo11", "group11"). usingJobData("jobSays", "Hello Vikas") .usingJobData("myFloatValue", 3.141f).storeDurably(true). build(); 触发为 Trigger
JobDetail job=newJob(HelloJob.class).withIdentity("demo11", "group11").
usingJobData("jobSays", "Hello Vikas")
.usingJobData("myFloatValue", 3.141f).storeDurably(true).
build();
触发为
Trigger trigger=newTrigger().withIdentity("Trigger11","group11")
.startNow().withSchedule(CronScheduleBuilder.
cronSchedule("0 0/1 * * * ?")).build();
我的印象是Quartz将在数据库中存储jobSays和myFloatValue,但我在数据库中看不到任何此类属性
有没有办法将这些作业数据存储在数据库中
这是quartz.property文件
Quartz将作业数据作为BLOB数据类型存储在QRTZ_作业_详细信息表中 请在那里查一下
org.quartz.scheduler.instanceName = MyScheduler
org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount = 3
org.quartz.jobStore.dataSource = myDS
org.quartz.dataSource.myDS.driver=com.mysql.jdbc.Driver
org.quartz.dataSource.myDS.URL=jdbc:mysql://localhost:3306/quartz
org.quartz.dataSource.myDS.user=root
org.quartz.dataSource.myDS.password=root
org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreTX
org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.MSSQLDelegate
org.quartz.jobStore.tablePrefix = QRTZ_