idea uses springboot hot deployment

Hot deploy with devtools:

1. Open the setting in idea, find the following location, and check the option.


2. Press the shortcut key ctrl+shift+alt+/, find the registry, and check the following picture


3. Import dependencies, the latest 2.0.1 address: click to open the link

I am using gradle, so import

compile group: 'org.springframework.boot', name: 'spring-boot-devtools', version: '2.0.1.RELEASE'

If you use maven, import

<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-devtools -->
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <version>2.0.1.RELEASE</version>

</dependency>

4. Restart the project, after modifying the content of the class, press ctrl+f9 to update, the speed is much faster


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324756935&siteId=291194637