IDEA hot loading and hot deployment configuration

1. IDEA comes with hot reloading, and when Debug mode is turned on, it automatically comes with hot reloading

That is to say, modifying the return value or code refreshing the page will have an effect without restarting. Hot reloading does not restart tomcat but adds new methods, variables, and changes to the configuration file. The template engine page is cached by default. At this time, it can only be restarted.
Click here to configure .

2. Spring-boot-devtools implements hot deployment

Using this method solves the problems of adding new methods, variables, modifying configuration files, and caching in Debug mode. This method requires restarting Tomcat.
Click here to configure .

Guess you like

Origin blog.csdn.net/weixin_43957211/article/details/110530198