在不重新启动应用程序的情况下重新加载 Vaadin UI



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

有没有更好的方法?我尝试连接 Java 调试器并使用 IntelliJ 的重新加载更改的类功能,但热交换失败。

我在Vaadin的上下文中看到过JRebel的提及,但我负担不起 - Spring Loaded似乎是另一种选择。还有什么事吗?

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/可能有助于实现相同的目标。

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

最新更新