Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Springboot enables the hot deployment strategy of IDEA.

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article focuses on "springboot's hot deployment strategy for enabling IDEA". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "springboot's hot deployment strategy for turning on IDEA".

1. Enable automatic compilation of IDEA (static)

Specific steps: open the top toolbar File-> Settings-> Default Settings-> Build-> Compiler and check Build project automatically.

Turn on the automatic compilation of IDEA (dynamic)

Specific steps: press and hold Ctrl + Shift + Alt + / and then enter Registry, check automatic compilation and adjust delay parameters.

Compiler.automake.allow.when.app.running-> automatically compile compile.document.save.trigger.delay-> automatically update files PS: very few people mention compile.document.save.trigger.delay on the Internet. It is mainly for static files such as JS CSS updates. After reducing the delay time, press F5 to refresh the page directly to see the effect!

Third, turn on the hot deployment strategy of IDEA (very important)

Specific steps: top menu-> Edit Configurations- > SpringBoot plug-in-> Target Project-> check Hot Update.

Add a hot deployment plug-in to the project (optional) warm tip: if the old project is so bloated that every automatic hot restart is slow and affects development efficiency, the author suggests removing spring-boot-devtools dependencies directly in POM, and then use Control+Shift+F9 to manually start-free quick updates!

Specific steps: add a hot deployment plug-in to the POM file

Org.springframework.boot spring-boot-devtools runtime IV. Turn off browser caching (important)

Open Google browser, open the Network options bar in F12, and check [✅] Disable cache.

At this point, I believe you have a deeper understanding of "springboot's hot deployment strategy for enabling IDEA". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report