【问题标题】:Reloading Vaadin UIs without restarting the application在不重新启动应用程序的情况下重新加载 Vaadin UI
【发布时间】:2017-08-13 02:50:33
【问题描述】:

我正在开发 Vaadin 8 用户界面。目前,每次修改 UI 时,我都必须重新启动我的应用程序。

有没有更好的方法?我已尝试附加 Java 调试器并使用 IntelliJ 的 Reload Changed Classes 功能,但热插拔失败。

我在 Vaadin 的上下文中看到过提到 JRebel,但我买不起 - Spring Loaded 似乎是 another option。还有什么吗?

【问题讨论】:

  • 取决于您的工具链。例如,当您将 Netbeans 与本地 tomcat/ee 一起使用时,您可以进行小的代码更改,直接被蜜蜂接管而无需重新加载。但是在结构更改时,您将重新部署应用程序

标签: vaadin jrebel spring-loaded vaadin8


【解决方案1】:

http://www.hermansjavablog.eu/programming/definitive-guide-vaadin-7-maven-tomcat-intellij-idea-hotswap-deployment/ 似乎很有希望。也许你错过了一些选项..

已编辑

在 Eclipse 中,我现在尝试使用 SpringLoaded http://blog.netgloo.com/2014/05/21/hot-swapping-in-spring-boot-with-eclipse-sts/ 并且非常有效。

在 Intellij 中 http://tomaszjanek.pl/blog/2015/02/03/hot-reloading-in-spring-boot-with-spring-loaded/ 可能有助于实现同样的目标。

【讨论】:

【解决方案2】:

我们在开发中使用 Jetty,并对其进行了热部署。应用程序状态将丢失,但在开发过程中,它很可能正是您想要的。 http://www.eclipse.org/jetty/documentation/9.4.x/hot-deployment.html

【讨论】:

    最近更新 更多