框架:Intellij搭建Spring框架

时间:2023-03-09 02:54:32
框架:Intellij搭建Spring框架

第二章、Intellij搭建Spring框架

前提条件:jdk、jre已经安装完成

方法一、intellij下载jar

附:自带的jar的版本为4.3【2018/11/22】

第一步:选择File>new>project

框架:Intellij搭建Spring框架

第二步:勾选Spring,点击Next

框架:Intellij搭建Spring框架

第三步:选择项目名和项目路径,并选择Finsh

框架:Intellij搭建Spring框架

第四步、显示结果

框架:Intellij搭建Spring框架

方法二、自己导入最新的jar包 

第一步:

国外的网址

    • https://repo.spring.io/webapp/#/home
    • https://repo.spring.io/libs-release-local/org/springframework/spring/,

国内的网址

https://download.****.net/download/qq_41803637/10796309

下载合适的jar包,并且放到合适的位置

第二步:选择File>new>project

框架:Intellij搭建Spring框架

第三步、选择等一下导入jar

框架:Intellij搭建Spring框架

第四步、导入jar包

1、选择红圈的地方

框架:Intellij搭建Spring框架

2、选择Libraries>Java 

框架:Intellij搭建Spring框架

3、选择到libs目录

框架:Intellij搭建Spring框架

完成!

框架:Intellij搭建Spring框架