spring-bootintellij-ideaspring-boot-devtools

Intelijj IDEA springboot devtools


I using Springboot to create my app, so in Springboot Doc says if I use devtools the tomcat will restart everty change in my code, but I use the maven panel to run my app just double click in spring-boot:run plugins, but when I change any code my tomcat don`t restart.

how can I fix this? tks


Solution

  • This a guide I used some time ago to make it work: https://www.mkyong.com/spring-boot/intellij-idea-spring-boot-template-reload-is-not-working/

    Basically you have two do 2 things:

    1. Enable "Build project automatically" from Settings->Build, Execution, Deployment->Compiler
    2. Go to Registry(Ctrl+A, type "Registry") and enable compiler.automake.allow.when.app.running and ide.windowSystem.autoShowProcessPopup