Explain in detail the method of hot deployment of spring cloud framework

Absrtact: the so-called hot deployment is to upgrade the software while the application is running without restarting the application. For Java applications, hot deployment is to update Java class files at run time.

1. In the corresponding POM Add dependency to XML file

2. Note: spring boot Maven plugin is added to the project, which is mainly used in eclipse. This configuration does not need to be added in idea. [idea ignores this step (⊙ o ⊙)]

3. Change idea configuration

1) "File" - > "Settings" - > "build, execution, deployment" - > "compiler", check and tick "build project automatically".

2) Key combination: "Shift + Ctrl + Alt + /", select "Registry", and check "compiler.automake.allow.when.app.running".

4. Disable cache in chrome [open during development]

F12 or "Ctrl + Shift + I", open the developer tool, and check "disable cache (while devtools is open)" under the "network" tab

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>