Modifying groovy code at runtime in grails application

后端 未结 3 1188
长发绾君心
长发绾君心 2021-01-12 01:39

When I run my grails application using embedded jetty server(tomcat for grails 1.2), I can make changes to my controllers, services and other java files on-the-fly at runtim

3条回答
  •  清酒与你
    2021-01-12 02:10

    When you package your application as a WAR, the Groovy files are compiled to Java bytecode (.class files) and included in the WAR. The hot swapping of files at runtime is not suitable for production use due to memory leaks.

提交回复
热议问题