Grails Webflow 不自动重新加载
大家好 - 我正在为我们正在构建的 Grails 应用程序开发一些 Web 流程。我(慢慢地)掌握了 Webflow 本身的窍门,但由于对 Webflow 控制器的更改在保存时不会在 Tomcat 中自动重新加载,因此进展受到严重限制;基本上,我需要每次进行更改时弹回应用程序。正如你可以想象的那样,这是非常痛苦的。我认为自动重新加载在几天前工作,然后停止了,但我不确定。
还有其他人经历过吗?关于如何使自动重新加载工作有什么想法吗?
谢谢!
Hey all- I'm working on some web flows for a Grails app we're building. I'm (slowly) getting the hang of the webflows themselves, but progress is severely limited due to the fact that changes to the webflow controller are not auto-reloading in Tomcat on save; basically, I need to bounce the app every time I make a change. As you can imagine, this is pretty painful. I think auto-reload was working a couple of days ago and then stopped, but I'm not sure.
Has anyone else experienced this? Any thoughts on how to make auto-reload work?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
经过多次尝试和错误,我发现了以下情况:
情况:我有一个带有单个网络流的控制器。 Webflow 的第一阶段使用命令对象。 (Grails 1.3.1)
1) 命令和 Webflow 在同一个文件中;命令优先:一切正常,但控制器不会在保存时自动重新加载。
2)命令和Webflow在同一个文件中; Webflow First:不起作用 - 尝试呈现引用命令对象的页面时引发序列化异常。
3)命令和Webdlow在不同的文件中:一切正常并且控制器自动重新加载。
现在我将把所有内容保存在单独的文件中。如果有人了解为什么会出现这种行为,我会洗耳恭听。
After much trial and error, here's what I found:
Situation: I have a controller with a single webflow. The first stage of the webflow uses a command object. (Grails 1.3.1)
1) Command and Webflow in same file; Command first: everything works, but the controller will not auto-reload on save.
2) Command and Webflow in same file; Webflow first: doesn't work- a serialization exception thrown when trying to render the page that references the command object.
3) Command and Webdlow in different files: everything works and controller auto-reloads.
For now I'll just keep everything in separate files. If anyone has insight into why this behavior is being exhibited, I'm all ears.