当前位置:网站首页>Idea implements hot deployment

Idea implements hot deployment

2022-06-25 20:46:00 Nishino_ shou

One 、 Turn on IDEA Automatic compilation of ( static state )

Hold down ctrl+alt+S open setting Set up

 

Two 、 Turn on IDEA Automatic compilation of ( dynamic )

Press and hold at the same time Ctrl + Shift + Alt + / Then enter Registry , Check auto compile and adjust delay parameters .

  • compiler.automake.allow.when.app.running -> Automatic compilation
  • compile.document.save.trigger.delay -> Automatically update files

PS: Few people on the Internet mention compile.document.save.trigger.delay It is mainly for static files such as JS CSS Update , After reducing the delay time , Directly by F5 Refresh the page to see the effect !

 

3、 ... and 、 Turn on IDEA Hot deployment strategy for ( It's very important )

 

Four 、 Add heating deployment plug-ins in the project ( Optional )

reminder :
If you are overstaffed because of the old project , It leads to the slow automatic hot restart every time, which affects the development efficiency , It is suggested that we should go directly to POM remove spring-boot-devtools rely on , And then use Control+Shift+F9 Manual start-up free quick update !!

notes : At first, it directly adopted pom Configuration mode for hot deployment , But the discovery didn't work . Probably reserved

<optional>true</optional> 

But the specific reasons have not been explored in depth , If a friend finds out about this problem , Please leave a message .

 

5、 ... and 、 Turn off browser caching ( important )

Open Google browser , open F12 Of Network Options bar , Then check it out. 【】Disable cache 

 



The general content is reproduced from

The original author :yizhiwazi
link :https://www.jianshu.com/p/f658fed35786
source : Simple books
The copyright belongs to the author . Commercial reprint please contact the author for authorization , Non-commercial reprint please indicate the source .

 

 

 

 

原网站

版权声明
本文为[Nishino_ shou]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202181339194269.html

随机推荐