springboot

    科技2022-09-08  113

    1. POM添加依赖

    <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> <scope>true</scope> </dependency>

    2. application.yml添加

    spring: devtools: restart: enabled: true additional-paths: src/main/java exclude: WEB-INF/** freemarker: cache: false

    3. idea设置

    File - Settings - Compiler - Build Project automatically ctrl + shift + alt + /, - Registry - Compiler autoMake allow when app running
    Processed: 0.008, SQL: 9