我刚刚使用 Angular 4 启动了一个 Spring Boot 项目。对于 Angular,我可以运行,npm start以便 NPM 编译每个更改。但我不知道如何为 Spring Boot 做到这一点。我可以找到 Eclipse/IntelliJ 的一些来源,但我想继续使用我的 Visual Studio Code 编辑器。
Jul*_*ago 12
有点晚了,但我正在寻找相同的东西并到了这里。也许这对其他人有用。
答案在 spring 的文档中。
在这里阅读:
https://docs.spring.io/spring-boot/docs/current/reference/html/howto-hotswapping.html
然后在这里:
https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-devtools.html
如果链接有问题...
如果您使用 Maven,只需在您的 pom 中添加此依赖项:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
Run Code Online (Sandbox Code Playgroud)
或者,如果您使用的是 Gradle:
dependencies {
compile("org.springframework.boot:spring-boot-devtools")
}
Run Code Online (Sandbox Code Playgroud)
我希望这可以帮助别人。
| 归档时间: |
|
| 查看次数: |
4269 次 |
| 最近记录: |