Enable IntelliJ hotswap of html and javascript files

自闭症网瘾萝莉.ら 提交于 2019-11-27 19:49:53

You need the option "Update resources". You should be able find this option in your server Run/Debug configuration.

I had the same problem but I already fixed it. You can follow this steps:

  1. Go to Help->Find Action
  2. Type "Registry".
  3. Find and mark : “compiler.automake.allow.when.app.running”.
  4. Close the Dialog.
  5. Go to "Settings->Build, Execution, Deployment->Compiler".
  6. Mark "Build project automatically".
  7. Apply changes.
  8. Go to Spring Boot Configuration and if everything goes well it will display a warning about "background compilation", Run your Spring Boot Application and you should be able to see your statisc's files changes when refresh your browser.

Hope it helps.

user2409548

As i found this thread interesting, i also found a lot of explanations here: https://www.jetbrains.com/idea/help/updating-applications-on-application-servers.html

One more thing, which might not be obvious - to activate the automatic build you have to activate the IntelliJ window. It is still very convenient, although you have to switch windows when operation only in the browser.

Also, a keyboard shortcut(e.g. Ctrl+F5 or Cmd+F5) to "Run -> Reload changed classes" might come handy. It helps me to save changes multiple times and then restart the server when I'm done (unless using JRebel :)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!