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 if hot deployment doesn't work due to changes in springboot + devtools code in Mac idea2020.1

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

Share

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

Mac idea2020.1 springboot + devtools code changes lead to hot deployment does not work, I believe that many inexperienced people do not know what to do, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

Recently, I have been building springboot-related projects and want to use devtools in development to reduce the manual start and stop of the server.

This can speed up the development speed and quickly see the modified results.

How to use devtools in your code, you only need to add the following dependency to the maven dependency

Org.springframework.boot spring-boot-devtools true

The system and development tools used are: mac os,idea 2020.1.

But whether you modify the Java class, the html,js, or the yml,properties file. It just won't restart automatically, but this tool is definitely mature. After the code is automatically compiled and a new class is generated, the Context should be automatically refreshed.

After thinking it over, it should be a matter of development tools, which has nothing to do with the relevant configuration of the operating system and Java.

Don't talk too much nonsense and write down the solution.

1. Set the compiler of idea to compile automatically:

two。 Open the Maintenance of idea through the shortcut key (the combination of "Shift+Ctrl+Alt+/" mac is also valid), and select Registry

3. Select the following options in the Registry panel that opens. (note: it is possible that the Registry panel you open is very small, only see the scarlet letter prompt and a box, do not rush to enlarge the entire panel to see the following options. )

After reading the above, have you mastered the method of how to make hot deployment not work due to springboot + devtools code changes in Mac idea2020.1? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

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