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

What are the knowledge points of springboot hot deployment

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces what are the knowledge points of springboot hot deployment, which are introduced in great detail and have certain reference value. Friends who are interested must finish reading them.

Briefly talk about the hot deployment of springboot, but you can actually think of this as a trick.

Is to import a dependency, and when you want to use it, it is a shortcut key operation: Ctrl+F9

1. Import dependency

The dependencies are as follows; where optional indicates that this is an optional dependency that is valid only for this project, and if a parent project references this project, then this dependency is equivalent to nothing! (so, if we test, it doesn't matter whether the optional is written or not.)

Note: be sure to restart the application after importing this dependency, and then you don't need to restart it again.

two。 Original application

Come to any springboot app, write a controller, and the browser outputs 1234

The bytecode file and browser output are as follows:

This is that if you want to modify something in the source file, you have to restart the application, which is not very convenient.

3. After using hot deployment

If you modify anything, press Ctrl+F9 and you will ok it. (note: here I read that some blogs are written on Ctrl+Shift+F9, and I don't know what the hell is. )

Thus it can be seen that it is convenient to use hot deployment, and this skill still needs to be mastered!

These are all the contents of the article "what are the knowledge points of springboot hot deployment". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

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

Development

Wechat

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

12
Report