In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
A lot of articles about hot deployment of spring boot using devtools were searched on the Internet, and they all said that the main unsuccessful problems were the following two points:
1. Check the Build project automatically option in settings- > build,execution,Deployment- > compiler:
2. Press the ctrl+shift+alt+/, key combination, select 1.Registry, and check compiler.automake.allow.when.app.running
Finally, restart the project, and you can see the effect of hot deployment.
But I tried for a long time and still didn't respond.
Then, I tried to force the use of additional-paths on the package path that needed hot deployment: on configuration, I found that idea had a rerelease action when making changes. I thought it was okay, but I was glad that the new code was still not updated, so it seems that this speculative method still doesn't work.
Finally, I finally found the problem, which is not mentioned on the Internet. Every time I start a project, I use gradle- > tasks- > application- > bootRun.
This is where the problem arises. If you directly use the startup configuration of the project, as shown below:
The hot deployment will take effect. Ha
Guess it should be caused by the different startup configuration of the gradle and the project itself!
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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.