This commit is contained in:
文永达 2023-03-23 18:09:03 +08:00
parent ccb08b1004
commit 9868b7b80e

View File

@ -1,3 +1,32 @@
# Intellij IDEA
## Spring Boot DevTools热重载
pom.xml引入依赖
```xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<!-- 只在运行时起作用打包时不打进去防止线上执行打包后的程序启动文件监听线程File Watcher耗费大量的内存资源 -->
<scope>runtime</scope>
<!-- 防止将依赖传递到其他模块中 -->
<optional>true</optional>
</dependency>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
```
打开IDEA设置 找到 Build, Execution, Deployment -> Compiler -> Build project automatically 勾选
![image-20230323102425710](https://markdownhexo.oss-cn-hangzhou.aliyuncs.com/img/image-20230323102425710.png)
继续找到Advanced Settings 勾选 Allow auto-make to start even if developed application is currently running
![image-20230323102621741](https://markdownhexo.oss-cn-hangzhou.aliyuncs.com/img/image-20230323102621741.png)
# JetBrains Rider
## 安装CodeGlance Pro后关闭原有的在滚动条悬停时显示代码