spring boot hotswap with Intellij IDE

后端 未结 7 2089
长发绾君心
长发绾君心 2020-11-28 02:40

I have a spring boot application running fine with Intellij IDE. i.e i started the Application class that has the main method which delegates to SpringApplication.run. Every

7条回答
  •  旧巷少年郎
    2020-11-28 03:01

    Step 1: Add developer tools denpendency

    Maven.

    
        
            org.springframework.boot
            spring-boot-devtools
            true
        
    
    

    Gradle.

    dependencies {
        compile("org.springframework.boot:spring-boot-devtools")
    }
    

    Step 2: Go to File | Settings | Build, Execution, Deployment | Compiler

    enable Build project automatically & Apply & OK

    Step 3: Press shortcut key Ctrl+Shift+A & Search Registry keyword & Press Enter

    Enable complier.automake.allow.when.app.running & Click Close Button

    Step 4: Disable cache on your favorite web browser

    Step 5: Done!!!

    Watch Solution On YouTube

提交回复
热议问题