我正在尝试将 Java 项目从 Eclipse 迁移到 VS Code,该项目由前端和后端组成,并且两者都应该在本地主机的 Wildfly 服务器上运行。我希望在修改 .xhtml 或 .java 文件时重新加载热代码,而不必手动编译 .war 文件并将其发布到服务器。
我正在使用 Red Hat Server Connector 插件,但在 Wildfly 服务器上只有一个用于部署 war 文件或文件夹的选项。
有没有办法配置Maven直接编译到wildfly\standalone\deployments?或者一些关于如何为 Java 配置 VS Code 的教程。
I'm trying to migrate a Java project from Eclipse to VS Code, the project consist of a front and a backend, and both are supposed to run on a Wildfly Server at localhost. I want to have hot code reload when a .xhtml or .java file is modified, without having to manually compile a .war file and publish it to the server.
I'm using the Red Hat Server Connector plugin, but on the Wildfly server there is only and option for deploying a war file or a folder.
Is there a way to configure Maven to compile directly to wildfly\standalone\deployments? or some tutorial about how can I configure VS Code for Java.
发布评论
评论(1)
您是否尝试过Java 扩展程序的
tomcat?
您可以查看此视频,在
8:13 /代码>您可以看到
热代码替换
按钮。Have you tried the
Tomcat for Java
extension?You can have a look at this video, at the
8:13
you can see theHot Code Replace
button.