1

My spring boot microservice uses spring-boot-starter-web and I'm trying to enable hot swapping in intellij. I tried adding the this dependency:

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <scope>runtime</scope>
</dependency>

and then in Intellij I:

checked "Build project automatically" in compiler settings AND checked the compiler.automake.allow.when.app.running box AND restarted Intellij

I ran my microservice, then changed a controller file, and nothing happened...any ideas? Is it b/c I'm using spring-boot-starter-web and consequently embedded Tomcat?

Thanks!

Ron Stevenson
  • 166
  • 1
  • 13

1 Answers1

0

Along with the steps that you've followed already, did you mind doing this as well? This seems to be answered already here.

Give it a try and let me know if it works for your case too!

Update the value of compiler.automake.allow.when.app.running

Press Ctrl+Shift+A and search for the registry. In the registry, enable: compiler.automake.allow.when.app.running

N00b Pr0grammer
  • 4,503
  • 5
  • 32
  • 46
  • I did try those things already....thx tho. I'm wondering if it's b/c in my Intellij project I have like 30 diff maven projects....maybe if i had just the one it would work ? :/ – Ron Stevenson Apr 27 '18 at 18:30
  • You could then give it a try with a new workspace only having just one project! – N00b Pr0grammer Apr 28 '18 at 10:05