首页 > 其他 > 详细

IDEA第一篇【IDEA常见设置】

时间:2020-04-09 14:18:17      阅读:61      评论:0      收藏:0      [点我收藏+]

热部署

操作步骤:

  1. 导入依赖
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <optional>true</optional>    <!-- 这个需要为 true 热部署才有效 -->
</dependency>
  1. ctrl+shift+alt+/

技术分享图片

技术分享图片

  1. File -- Settings -- Build, Execution, Deployment -- Compiler

技术分享图片

Maven相关配置

操作步骤:

  1. 设置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>
  1. File -- Settings -- Build, Execution, Deployment -- Maven -- Importing

技术分享图片

-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true 这步操作是为了忽略ssl证书认证

IDEA第一篇【IDEA常见设置】

原文:https://www.cnblogs.com/kwdlh/p/12666383.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!