Spring环境搭建

本次示例,通过Maven搭建环境,开发工具为IDEA:

目录:

一、创建Maven项目

二、引入Spring

一、创建Maven项目

1、创建项目:选择Maven,点击下一步:

2、填写GroupId 和ArtifactId,点击Next

 

3、选择保存文件的位置,项目名称更改:

 

4、建好项目如下:

二、引入Spring

1、打开Spring官网

   https://projects.spring.io/spring-framework/

  

  我们选择4.3.17

2、修改pom文件,添加引用,刷新Maven项目,Lib中添加了Spring相关的引用

 

3、

原文地址:https://www.cnblogs.com/sshoub/p/9081853.html