상세 컨텐츠

본문 제목

IntelliJ에서 Spring Boot와 Jrebel 연동시 수정사항이 제대로 반영 안되는 현상 해결

IT/프로그래밍

by James Lee. 2017. 8. 25. 12:48

본문

Edit

IntelliJ에서 Spring Boot와 Jrebel 연동시 수정사항이 제대로 반영 안되는 현상 해결

현상

자바 코드는 특성상 업데이트를 하면 컴파일 및 배포를 다시 해줘야 하는데 이 과정을 줄이고 생산성을 높히기 위하여 Spring과 JRebel을 연동해서 사용하고 있었다.

IntelliJ로 Spring Boot 프로젝트를 생성하고, 이전처럼 JRebel과 연동을 해주었는데 프로젝트를 올리니 에러 없이 JRebel 메세지가 나왔다.

2017-08-25 12:21:45 JRebel:  #############################################################
2017-08-25 12:21:45 JRebel:
2017-08-25 12:21:45 JRebel: JRebel Agent 7.0.14 (201708161539)
2017-08-25 12:21:45 JRebel: (c) Copyright ZeroTurnaround AS, Estonia, Tartu.
2017-08-25 12:21:45 JRebel:
2017-08-25 12:21:45 JRebel: Over the last 30 days JRebel prevented
2017-08-25 12:21:45 JRebel: at least 166 redeploys/restarts saving you about 0 hours.
2017-08-25 12:21:45 JRebel:
2017-08-25 12:21:45 JRebel: Over the last 124 days JRebel prevented
2017-08-25 12:21:45 JRebel: at least 1365 redeploys/restarts saving you about 0.4 hours.
2017-08-25 12:21:45 JRebel:
2017-08-25 12:21:45 JRebel: Licensed to James Lee (using myJRebel).
2017-08-25 12:21:45 JRebel:
2017-08-25 12:21:45 JRebel:
2017-08-25 12:21:45 JRebel: #############################################################

그런데 hot swap (수정한 코드가 바로 반영되는 것)이 적용되지 않았다.

이전에 Spring을 사용할때에도 비슷한 현상이 있었는데 이는 IntelliJ -> Setting -> Compiler -> Build Automatically 옵션을 체크해서 해결할 수 있었다. 그런데 이번에는 정상적으로 체크되어 있음에도 핫스왑이 정상적으로 동작하지 않았다.

해결

팀원분의 서포트로 문제를 해결할 수 있었다.
registry 메뉴에서 compiler.automake.allow.when.app.running 를 체크해주면 핫스왑이 정상적으로 동작한다.

참고

Spring boot devtools - Static content reloading does not work in IntelliJ

%23%20IntelliJ%uC5D0%uC11C%20Spring%20Boot%uC640%20Jrebel%20%uC5F0%uB3D9%uC2DC%20%uC218%uC815%uC0AC%uD56D%uC774%20%uC81C%uB300%uB85C%20%uBC18%uC601%20%uC548%uB418%uB294%20%uD604%uC0C1%20%uD574%uACB0%0A%0A@%28Spring%20Framework%29%5BJrebel%2C%20%uD2F0%uC2A4%uD1A0%uB9AC%5D%0A%0A%23%23%23%20%uD604%uC0C1%0A%0A%uC790%uBC14%20%uCF54%uB4DC%uB294%20%uD2B9%uC131%uC0C1%20%uC5C5%uB370%uC774%uD2B8%uB97C%20%uD558%uBA74%20%uCEF4%uD30C%uC77C%20%uBC0F%20%uBC30%uD3EC%uB97C%20%uB2E4%uC2DC%20%uD574%uC918%uC57C%20%uD558%uB294%uB370%20%uC774%20%uACFC%uC815%uC744%20%uC904%uC774%uACE0%20%uC0DD%uC0B0%uC131%uC744%20%uB192%uD788%uAE30%20%uC704%uD558%uC5EC%20Spring%uACFC%20%5BJRebel%5D%28http%3A//devsh.tistory.com/entry/JRebel-%25EC%259D%2584-%25EC%2582%25AC%25EC%259A%25A9%25ED%2595%2598%25EC%2597%25AC-%25EA%25B0%259C%25EB%25B0%259C%25ED%2599%2598%25EA%25B2%25BD%25EC%2597%2590%25EC%2584%259C-WAS-%25EC%259E%25AC%25EA%25B5%25AC%25EB%258F%2599%25EC%2597%2586%25EC%259D%25B4-Class-%25ED%258C%258C%25EC%259D%25BC-%25EC%25A0%2581%25EC%259A%25A9%25ED%2595%2598%25EA%25B8%25B0%29%uC744%20%uC5F0%uB3D9%uD574%uC11C%20%uC0AC%uC6A9%uD558%uACE0%20%uC788%uC5C8%uB2E4.%0A%0AIntelliJ%uB85C%20Spring%20Boot%20%uD504%uB85C%uC81D%uD2B8%uB97C%20%uC0DD%uC131%uD558%uACE0%2C%20%uC774%uC804%uCC98%uB7FC%20JRebel%uACFC%20%uC5F0%uB3D9%uC744%20%uD574%uC8FC%uC5C8%uB294%uB370%20%uD504%uB85C%uC81D%uD2B8%uB97C%20%uC62C%uB9AC%uB2C8%20%uC5D0%uB7EC%20%uC5C6%uC774%20JRebel%20%uBA54%uC138%uC9C0%uAC00%20%uB098%uC654%uB2E4.%0A%0A%60%60%60%0A2017-08-25%2012%3A21%3A45%20JRebel%3A%20%20%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A2017-08-25%2012%3A21%3A45%20JRebel%3A%20%20%0A2017-08-25%2012%3A21%3A45%20JRebel%3A%20%20JRebel%20Agent%207.0.14%20%28201708161539%29%0A2017-08-25%2012%3A21%3A45%20JRebel%3A%20%20%28c%29%20Copyright%20ZeroTurnaround%20AS%2C%20Estonia%2C%20Tartu.%0A2017-08-25%2012%3A21%3A45%20JRebel%3A%20%20%0A2017-08-25%2012%3A21%3A45%20JRebel%3A%20%20Over%20the%20last%2030%20days%20JRebel%20prevented%0A2017-08-25%2012%3A21%3A45%20JRebel%3A%20%20at%20least%20166%20redeploys/restarts%20saving%20you%20about%200%20hours.%0A2017-08-25%2012%3A21%3A45%20JRebel%3A%20%20%0A2017-08-25%2012%3A21%3A45%20JRebel%3A%20%20Over%20the%20last%20124%20days%20JRebel%20prevented%0A2017-08-25%2012%3A21%3A45%20JRebel%3A%20%20at%20least%201365%20redeploys/restarts%20saving%20you%20about%200.4%20hours.%0A2017-08-25%2012%3A21%3A45%20JRebel%3A%20%20%0A2017-08-25%2012%3A21%3A45%20JRebel%3A%20%20Licensed%20to%20James%20Lee%20%28using%20myJRebel%29.%0A2017-08-25%2012%3A21%3A45%20JRebel%3A%20%20%0A2017-08-25%2012%3A21%3A45%20JRebel%3A%20%20%0A2017-08-25%2012%3A21%3A45%20JRebel%3A%20%20%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A%60%60%60%0A%0A%uADF8%uB7F0%uB370%20hot%20swap%20%28%uC218%uC815%uD55C%20%uCF54%uB4DC%uAC00%20%uBC14%uB85C%20%uBC18%uC601%uB418%uB294%20%uAC83%29%uC774%20%uC801%uC6A9%uB418%uC9C0%20%uC54A%uC558%uB2E4.%0A%0A%uC774%uC804%uC5D0%20Spring%uC744%20%uC0AC%uC6A9%uD560%uB54C%uC5D0%uB3C4%20%uBE44%uC2B7%uD55C%20%uD604%uC0C1%uC774%20%uC788%uC5C8%uB294%uB370%20%uC774%uB294%20**IntelliJ%20-%3E%20Setting%20-%3E%20Compiler%20-%3E%20Build%20Automatically**%20%uC635%uC158%uC744%20%uCCB4%uD06C%uD574%uC11C%20%uD574%uACB0%uD560%20%uC218%20%uC788%uC5C8%uB2E4.%20%uADF8%uB7F0%uB370%20%uC774%uBC88%uC5D0%uB294%20%uC815%uC0C1%uC801%uC73C%uB85C%20%uCCB4%uD06C%uB418%uC5B4%20%uC788%uC74C%uC5D0%uB3C4%20%uD56B%uC2A4%uC651%uC774%20%uC815%uC0C1%uC801%uC73C%uB85C%20%uB3D9%uC791%uD558%uC9C0%20%uC54A%uC558%uB2E4.%0A%0A%23%23%23%20%uD574%uACB0%20%0A%uD300%uC6D0%uBD84%uC758%20%uC11C%uD3EC%uD2B8%uB85C%20%uBB38%uC81C%uB97C%20%uD574%uACB0%uD560%20%uC218%20%uC788%uC5C8%uB2E4.%0Aregistry%20%uBA54%uB274%uC5D0%uC11C%20**compiler.automake.allow.when.app.running**%20%uB97C%20%uCCB4%uD06C%uD574%uC8FC%uBA74%20%uD56B%uC2A4%uC651%uC774%20%uC815%uC0C1%uC801%uC73C%uB85C%20%uB3D9%uC791%uD55C%uB2E4.%0A%21%5BAlt%20text%5D%28./1503632164460.png%29%0A%0A%0A%23%23%23%20%uCC38%uACE0%0A%5BSpring%20boot%20devtools%20-%20Static%20content%20reloading%20does%20not%20work%20in%20IntelliJ%0A%5D%28https%3A//stackoverflow.com/questions/35895730/spring-boot-devtools-static-content-reloading-does-not-work-in-intellij/35895848%29%0A%0A%0A

관련글 더보기

댓글 영역