Two-step: introducing dependence, configuration idea
Following introduction in pom.xml dependency, keyword: devtools
The second step, modify two configuration idea
Under 2.1 windows, ctl + alt + s idea to open the configuration menu
Enter the upper left corner of the search box compiler, check the Build project automatically
2.2 ctrl + shift + alt + / select Registry
Open the Registry menu, search for running, check the
Configuration
Three recompile the project, code changes, do not need to manually compile, refresh your browser to see the effect directly