在這里只說一種簡單的方式就是在idea中進行簡單的設置就可以:
第一步:
設置IDEA開啟項目自動編譯,進入設置找到Build,Execut, Deployment -> Compiler 勾選中左側的Build Project automatically
第二步:
IDEA開啟項目運行時自動make, ctrl + shift + a(windows電腦),command+shift+alt+/(mac系統)搜索命令:registry -> 勾選compiler.automake.allow.when.app.running
點擊Registry之后勾選compiler.automake.allow.when.app.running
這樣就OK了!!!當然還有其他方式,網上有很多的。
