I recently switched from eclipse to IntelliJ. Eclipse's debug launcher used to reload the application instantly, whenever a class was saved. IntelliJ takes more than 10 secs to reload changed classes, which might not be a lot, but it is annoying because I use it so frequently.
How to make IntelliJ reload changed classes faster?
To reload changed classes
InteliJ is not recompiling the code after change in java files and rebuilding
Project > Setting>Build,Execution,Deployment>Compiler>check "build project automatically"
Ctrl + Shift + A find "registry", according to your requirements check the following:
compiler.automake.allow.when.app.running compiler.automake.trigger.delay=500
Add devtool in pom.xml
:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency>
Build, If found any probelm while building, saying some jar in not in class path. Just delete the corrupted jar and re-build the project angain after sync with maven libb
rcc
(or "recompile changed classes")next time you dont need to type, it will give the last run action
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.