修改1:File-->Settings --> Build, Execution, Deployment--> Compiler--> 勾选build project automatically

修改2:ctrl+shift+a 弹出页面中搜索“registry”

idea 本地调试,修改代码,代码自动生效_搜索

修改3:

idea 本地调试,修改代码,代码自动生效_搜索_02