我使用 Spring Boot 和 gwt 2.6.0 创建了 Web 应用程序。
更改生成文件的位置:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${gwt.plugin.version}</version>
<executions>
<execution>
<configuration>
<module>my.module</module>
<webappDirectory>src/main/resources/gwt-public/</webappDirectory>
</configuration>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
如果独立运行我的应用程序,一切正常,因为所有需要的文件都可以访问。
但问题是 - 如何在开发模式下运行 GWT(来自 Intellij IDEA)。我试图在 -noserver 模式下运行它,它会启动但在浏览器中什么都没有。
据我了解,我需要指定 dev 插件使用的 war 目录,所以这意味着我需要将打包显式设置为 war?我对此没有明确的想法。