Debugging in IntelliJ (Reloading changed classes)

前端 未结 2 1559
囚心锁ツ
囚心锁ツ 2020-12-14 20:26

I recently switched from eclipse to IntelliJ. Eclipse\'s debug launcher used to reload the application instantly, whenever a class was saved. IntelliJ takes more than 10 sec

2条回答
  •  一整个雨季
    2020-12-14 20:58

    InteliJ is not recompiling the code after change in java files and rebuilding

    1. Project > Setting>Build,Execution,Deployment>Compiler>check "build project automatically"

    2. Ctrl+Shift+A find "registry", according to your requirements check the following:

      compiler.automake.allow.when.app.running
      compiler.automake.trigger.delay=500
      
    3. Add devtool in pom.xml:

      
          org.springframework.boot
          spring-boot-devtools
          true
      
      
    4. Build, If found any probelm while building, saying some jar in not in class path. Just delete the corrupted jar and re-build the project angain after sync with maven libb

提交回复
热议问题