热部署
操作步骤:
- 导入依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional> <!-- 这个需要为 true 热部署才有效 -->
</dependency>
- ctrl+shift+alt+/
- File -- Settings -- Build, Execution, Deployment -- Compiler
Maven相关配置
操作步骤:
- 设置setting.xml
<!--设置本地仓库位置-->
<localRepository>F:\Maven\repository</localRepository>
<!--使用阿里云镜像,注意:url是https-->
<mirrors>
<mirror>
<id>aliyunmaven</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>
</mirrors>
- File -- Settings -- Build, Execution, Deployment -- Maven -- Importing
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
这步操作是为了忽略ssl证书认证