Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 920
Fabio Ebner Avatar asked Mar 09 '23 08:03

Fabio Ebner


2 Answers

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
like image 72
Teodor Dimitrov Avatar answered Mar 10 '23 22:03

Teodor Dimitrov


With IntelliJ IDEA you'll need to build the project after making changes to your source code.

Build -> Build Project (Ctrl + F9)

That will trigger the restart.

like image 31
Kyle Anderson Avatar answered Mar 10 '23 22:03

Kyle Anderson