nested exception is java.lang.IllegalStateException: Encountered invalid @Scheduled method

  • Post author:
  • Post category:java


org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySchulderManager' defined in file [D:\six-p2p\.metadata\.plugins\org.eclipse.wst.server.core\tmp3\wtpwebapps\timer\WEB-INF\classes\com\bjpowernode\p2p\timer\MySchulderManager.class]: Initialization of bean failed; nested exception is java.lang.IllegalStateException: Encountered invalid @Scheduled method 'test': Cron expression must consist of 6 fields (found 7 in "0/3 * * * * * *")




原因是cron表达式里面多写了一个*


纪念马虎的自己



版权声明:本文为myth_g原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。