Initialization of bean failed; nested exception is java.lang.IllegalStateException: Encountered invalid @Scheduled method 'aiTask': Cron expression must consist of 6 fields (found 1 in "0 14 18 * * ?")

/**
 * cron 表达式 秒 分 时 日 月 星期,最后三个不能同时为*
 */

Cron expression must consist of 6 fields

很奇怪的一件事情,我自己从其他地方粘贴就会报错,自己吧corn=""这个配置手敲一遍就不会报错,不知道神原因。

Cron expression must consist of 6 fields

 

相关文章:

  • 2022-12-23
  • 2021-10-26
  • 2021-09-25
  • 2021-07-07
  • 2022-01-09
  • 2021-09-21
  • 2022-02-15
猜你喜欢
  • 2021-06-17
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案