Spring boot automatically updates static files and instances of background code
During the use of spring boot, I found that I modified the static file. After the foreground is refreshed, there is no change. I have to restart to see it. This is simply unacceptable
What is the way to solve this problem?
After Baidu gets the answer you want, write it down here.
1. pom. XML modification
In POM Add this configuration to the XML file to update the static file modified in the background
2. file->settings
In the above figure, select the part in the red circle
3. shift + ctrl + alt + /
Through the above shortcut keys, the maintenance pop-up window will pop up and select the first one
After this setting, how cool it is when coding!
After the program runs, you don't have to restart it all the time It's almost written. Refresh the interface and it's OK. If you have another dual screen display, you'll enjoy coding
The above example of spring boot automatically updating static files and background code is all the content shared by Xiaobian. I hope it can give you a reference and support programming tips.