开发新电脑安装工具

代码开发工具

代码开发工具包括前端Vue开发工具WebStorm和后台Java开发工具。

前端开发工具

  1. 下载webstorm。
  2. 通过以下链接激活webstorm。
    https://www.jianshu.com/p/707c567f89e1
  3. 下载nodejs。
  4. 配置webstorm中编译的nodejs路径。
Run/Debug Configuration -> + -> npm -> run -> dev

后台开发工具

JDK安装

(1)下载最新jdk。
(2)配置环境变量。
新建JAVA_HOME系统变量。
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_241
新建java类加载路径(注意等号后面的.)
CLASSPATH=.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar
通过PATH关联JAVA_HOME的启动应用。
Path=%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;
(3)验证jdk是否安装成功。
cmd下
java -version

Maven插件安装

1.配置maven可以连接私服打包上传项目(maven的deploy指令)

<!-- (1)在maven安装目录下的配置文件settings.xml中添加到servers标签内部 -->
<server>
      <id>releases</id>
      <username>admin</username>
      <password>admin123</password>
    </server>
    <server>
      <id>snapshots</id>
      <username>admin</username>
      <password>admin123</password>
    </server>
<!--(2) 添加阿里云服务 -->
<mirrors>
     <mirror>  
	    <id>nexus-aliyun</id>  
	    <mirrorOf>central</mirrorOf>    
	    <name>Nexus aliyun</name>       <url>http://maven.aliyun.com/nexus/content/groups/public</url>  
    </mirror> 
  </mirrors>

 <!-- (3) 在项目中的pom.xml文件中添加。-->
 <distributionManagement>
    <repository>
        <id>releases</id>
  <url>http://localhost:8081/nexus/content/repositories/releases/</url>
    </repository> 
    <snapshotRepository>
        <id>snapshots</id>
<url>http://localhost:8081/nexus/content/repositories/snapshots/</url>
    </snapshotRepository> 
  </distributionManagement>

2.在maven安装目录下的配置文件settings.xml中添加:
添加到profiles标签内部

<profile>   
    <!--profile的id-->
    <id>dev</id>   
    <repositories>   
      <repository>  
        <!--仓库id,repositories可以配置多个仓库,保证id不重复-->
        <id>nexus</id>   
        <!--仓库地址,即nexus仓库组的地址-->
        <url>http://localhost:8081/nexus/content/groups/public/</url>   
        <!--是否下载releases构件-->
        <releases>   
          <enabled>true</enabled>   
        </releases>   
        <!--是否下载snapshots构件-->
        <snapshots>   
          <enabled>true</enabled>   
        </snapshots>   
      </repository>   
    </repositories>  
     <pluginRepositories>  
        <!-- 插件仓库,maven的运行依赖插件,也需要从私服下载插件 -->
        <pluginRepository>  
            <!-- 插件仓库的id不允许重复,如果重复后边配置会覆盖前边 -->
            <id>public</id>  
            <name>Public Repositories</name>  
            <url>http://localhost:8081/nexus/content/groups/public/</url>  
        </pluginRepository>  
    </pluginRepositories>  
  </profile>  
在配置文件settings.xml中添加用以激活上面的配置
  <activeProfiles>
    <activeProfile>dev</activeProfile>
  </activeProfiles>
  1. Maven常用命令
1、清除
 mvn clean 
2、仅在本地打包(跳过测试)
mvn clean package  -Dmaven.test.skip=true
3、在本地打包并安装到本地仓库(跳过测试)
mvn clean install -Dmaven.test.skip=true
4、在本地打包并上传到内网私服(跳过测试)
mvn clean deploy -Dmaven.test.skip=true

Git版本管理工具安装

1.下载Git。
2.setting -> Version Control -> Git ->
PATH TO GIT EXECUTION=C:\Program Files\Git\bin\git.exe

其他开发神器

1. Free MyBatis plugin
Setting->Plugin-> 搜索Free MyBatis plugin->重启IDEA。
2. Lombok plugin
3. GsonFormat
4. Alibaba Java Code Guidelines

数据库工具

PowerDesign工具

Navicat For MySQL工具

1.从https://www.cr173.com/soft/126934.html下载并按步骤安装。

发布了12 篇原创文章 · 获赞 2 · 访问量 641

猜你喜欢

转载自blog.csdn.net/gonghaiyu/article/details/104759911