Mac / Windows IDEA使用Spring Boot Devtools

Mac IDEA使用Spring Boot Devtools

    • 1 开启自动编译
    • 2 开启程序运行时自动编译
    • 3 配置Spring Boot Devtools

1 开启自动编译

Mac / Windows IDEA使用Spring Boot Devtools_第1张图片

2 开启程序运行时自动编译

快捷键:
Shift + option + command + /(Mac)
Shift+Ctrl+Alt+/(Windows)

Mac / Windows IDEA使用Spring Boot Devtools_第2张图片
开启下述功能:
Mac / Windows IDEA使用Spring Boot Devtools_第3张图片

3 配置Spring Boot Devtools

依赖:

<dependency>
    <groupId>org.springframework.bootgroupId>
    <artifactId>spring-boot-devtoolsartifactId>
    
    <optional>trueoptional>
    
    <scope>runtimescope>
dependency>

插件:

 <plugin>
    <groupId>org.springframework.bootgroupId>
    <artifactId>spring-boot-maven-pluginartifactId>
    <configuration>
        
        <fork>falsefork>
    configuration>
plugin>

你可能感兴趣的:(工具,intellij,idea)