How to enable SpringBoot auto build in VSCode & Intellij Idea

  • Add spring-boot-devtools to pom.xml

  ...
  
    org.springframework.boot
    spring-boot-devtools
    2.6.5
  
  ...

  • Auto build setting

    • VSCode: Settings -> Java -> Autobuild: Enabled
    • Idea: Settings --> Build-Execution-Deployment --> Compiler -> Build project automatically
  • Idea: Help --> Find Action ... -> Registry ... --> compiler.automake.allow.when.app.running

参考链接

你可能感兴趣的:(How to enable SpringBoot auto build in VSCode & Intellij Idea)