maven項目。最近開始上手IDEA,結果發現改了代碼,頁面刷新還是沒變,網上查了才知道IDEA的問題,網上一大把教程結果都不行,找了好久才發現有一個可以的,教程如下:
1.File——Settings——Build,Execution,Deplyment——Compiler,選中打勾 “Build project automatically” 。
2. 按住 Shift+Ctrl+Alt+/ ,然后選中 Registry ,然后勾選compiler.automake.allow.when.app.running
轉自:https://blog.csdn.net/weixin_43234960/article/details/101368542