简体   繁体   English

Grails + Netbeans + Apache Tomcat

[英]Grails + Netbeans + Apache Tomcat

So I have my grails server running with netbeans and i'm codding new features / testing in my browser at same time.所以我的 grails 服务器与 netbeans 一起运行,同时我正在我的浏览器中编写新功能/测试。 For some reason, sometimes when i change code im domain classes and then save and refresh my page, the server seems to go down but in reality, it is still running.出于某种原因,有时当我更改域类代码然后保存并刷新我的页面时,服务器似乎 go 关闭,但实际上它仍在运行。 I get this error:我收到此错误:

HTTP Status 404 -

type Status report

message

description The requested resource () is not available.
Apache Tomcat/6.0-snapshot

Any idea how to solve that?知道如何解决吗? Because its really anoying, i make changes and then when i want to visualize it the server goes down.因为它真的很烦人,所以我进行了更改,然后当我想将其可视化时,服务器出现故障。 Any help would be apreciated.任何帮助将不胜感激。

If you change anything in a domain class and save it your app will get re-deployed and may take a minute (404 in the meantime).如果您更改域 class 中的任何内容并保存它,您的应用程序将被重新部署,并且可能需要一分钟(同时为 404)。 You can change views and controllers without the app being re-deployed and you should see the changes as soon as you save and refresh.您可以在不重新部署应用程序的情况下更改视图和控制器,并且您应该在保存和刷新后立即看到更改。

Does this help?这有帮助吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM