问题描述
我的BootStrap.groovy(Grails 2.5.6)说:
AutoKbartUrlUpdateJob.schedule(grailsApplication.config.ygor.autoUpdateJobsInterval,params)
和IDEA IntelliJ绝对可以,执行作业没有任何问题。但是当部署到Tomcat服务器上时,Tomcat无法启动,并说:
groovy.lang.MissingMethodException: No signature of method: static ygor.AutoKbartUrlUpdateJob.schedule() is applicable for argument types: (java.lang.String,java.util.HashMap)
我正在使用grails石英插件:
compile "org.grails.plugins:quartz:1.0.2"
QuartzGrailsPlugin.groovy使用以下方法为Job类添加接收方法(仅在IntelliJ中工作)
// Schedule with job with cron trigger
mc.'static'.schedule = { String cronExpression,Map params = null ->
scheduleTrigger(TriggerUtils.buildCronTrigger(jobName,jobGroup,cronExpression),params)
}
如何解决此问题,使其在IntelliJ和Tomcat上都能正常工作?我找不到使用搜索引擎的信息。
如果两个版本都不适用,那么我会使用其他版本,因此仅Tomcat的解决方案也会对我有帮助。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)