quartz集群配置是window启动没有问题,centos启动报错问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/heroguo007/article/details/78791227
Caused by: java.lang.IllegalStateException: Cannot run without an instance id.
    at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1179)
    at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1460)
    at org.springframework.scheduling.quartz.SchedulerFactoryBean.createScheduler(SchedulerFactoryBean.java:600)
    at org.springframework.scheduling.quartz.SchedulerFactoryBean.afterPropertiesSet(SchedulerFactoryBean.java:481)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
    ... 38 more

修改如下:

vi 编辑  /etc/hosts文件,将当前服务器主机名加入127.0.0.1这一行即可(位置前、中、后随意),注意空格与其他名字分开:


猜你喜欢

转载自blog.csdn.net/heroguo007/article/details/78791227