简体   繁体   English

IntelliJ Spring引导,热部署未运行

[英]IntelliJ Spring boot, hot deploy doesn't run

I develop an application on IntelliJ with Spring Boot framework. 我使用Spring Boot框架在IntelliJ上开发了一个应用程序。

My backend is in Java and my front in Javascript. 我的后端是Java,前端是Javascript。

I use Maven for the compiler. 我使用Maven进行编译。

BUT, when i change anything in a javascript class and use "CTL+SHIFT+F9" to recompile my class, this class disappear of my front deployment.... 但是,当我更改javascript类中的任何内容并使用“ CTL + SHIFT + F9”重新编译我的类时,该类会从我的前端部署中消失。

For this moment, i always do maven clean and maven compile to get my class in a front 此时此刻,我始终会进行maven清理和maven编译以使我的课程排在前面

How to hot deploy my javascript class change? 如何热部署我的javascript类更改?

Thank you 谢谢

You need the option "Update classes and resources". 您需要选项“更新类和资源”。 You should be able find this option in your spring boot Run/Debug configuration in the Running Application Update Policies section and change On frame deactivation to Update classes and resources 您应该能够在Spring Boot的Run / Debug配置中的Running Application Update Policies部分中找到此选项,并将On frame deactivation更改为Update classes and resources

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM