[Grails] Grails quartz 困惑
xianshi_cn
2011-07-21
在使用Grails quartz 时, 我能过CreateJob创建了一个最简单的Demo,然后放在grails-app/jobs下面,代码如下:
package second_grails class TaskReminderJob { static triggers = { simple name: 'mySimpleTrigger', startDelay: 100000, repeatInterval: 3000 } def execute() { println "quartz start" } }
然后用 SpringSource Tool Suite (STS) 来启动, 发现结果是能正常输出, 但控制台在不断的编译,发布。 请问这是正常现象吗? 正确用法是什么?
Running Grails application.. Server running. Browse to http://localhost:8080/second_grails [groovyc] Compiling 1 source file to D:\test\workspace\second_grails\target\classes [groovyc] Compiling 2 source files to D:\test\workspace\second_grails\target\classes [delete] Deleting directory D:\test\grails_home\grails\projects\second_grails\tomcat Running Grails application.. Server running. Browse to http://localhost:8080/second_grails [groovyc] Compiling 1 source file to D:\test\workspace\second_grails\target\classes [groovyc] Compiling 2 source files to D:\test\workspace\second_grails\target\classes [delete] Deleting directory D:\test\grails_home\grails\projects\second_grails\tomcat Running Grails application.. Server running. Browse to http://localhost:8080/second_grails [groovyc] Compiling 1 source file to D:\test\workspace\second_grails\target\classes [groovyc] Compiling 2 source files to D:\test\workspace\second_grails\target\classes [delete] Deleting directory D:\test\grails_home\grails\projects\second_grails\tomcat Running Grails application.. |
|
xianshi_cn
2011-07-22
看来研究grails的人还是太少了
|
|
xianshi_cn
2011-07-22
犯了低级错误,已解决。。。
|
|
qixin000
2011-09-05
xianshi_cn 写道 犯了低级错误,已解决。。。
|
|
MeltingSnower
2011-09-08
代码时间戳的问题?
|
|
xianshi_cn
2011-09-09
代码放错了地方。
|
|
MeltingSnower
2011-09-09
我有一次类似的经历,后来发现是CVS服务器NTP服务停了,结果导致时间快了6个小时,于是check下来的代码就一直在编译……
|
|
沙舟狼客
2011-09-27
用quartz插件,你见Hibernate no session bind 的异常?
|
|
MeltingSnower
2011-10-08
没用过quartz插件
|