💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
**一、解决IDEA的Plugins无法联网的问题** ***** ![](https://img.kancloud.cn/72/55/7255359c3f74a9e47a6ea260474c840c_1155x308.png) ![](https://img.kancloud.cn/18/3f/183f3e658c2441e04f95ce2023c80e9c_692x304.png) **二、使用devtools实现热加载** ***** **2.1.引入devtools的maven依赖** ``` <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency> ``` **2.2 设置IDEA** **2.2.1 运行时编译配置** 组合键:“Shift+Ctrl+Alt+/” ,选择 “Registry” ,选中打勾 “compiler.automake.allow.when.app.running” ![](https://img.kancloud.cn/ea/31/ea31f2ba3a660c61be53ffc7500fdec8_865x301.png) ![](https://img.kancloud.cn/88/9f/889fbf92276868e41c60c2e9496cad78_1263x563.png) **2.2.2 自动化编译配置** “File” -> “Settings” -> “Build,Execution,Deplyment” -> “Compiler”,选中打勾 “ Build project automatically” 一般不做自动化编译,比较影响代码开发。 通常编译代码是Ctrl+F9或者点击小锤子 ![](https://img.kancloud.cn/66/d2/66d28ce15a324ab5119f1ba97d8d25b4_1469x1006.png) ![](https://img.kancloud.cn/f3/b1/f3b17bb2344c3d800720cd0b73e8018c_1256x413.png) **2.3、实现原理** ![](https://img.kancloud.cn/d5/ff/d5ff400ff6015e1e49cdd893841a2f91_1069x412.png) **三、 LiveReload插件** ***** chrome 浏览器插件商店安装一个插件叫做LiveReload, 可以实现自动刷新。