spring项目快速搭建

 时间:2026-04-21 23:40:24

1、第一步

使用maven构建spring新项目是非常方便的,这里采用maven构建,maven的安装可以参考下面的引用

首先打开eclipse

spring项目快速搭建

2、第二步

点击File--new---project新建项目,选择mavne项目,关于maven的配置可以看考第一步的引用

spring项目快速搭建

3、第三步

选择maven--maven project项目,勾选:create a simple project(skip archetype selection)

spring项目快速搭建

spring项目快速搭建

4、第四步

编写new mavne project  信息:, group id组织信息、 artfact id 项目标示、 version 版本信息

spring项目快速搭建

5、第五步

项目创建好后,编辑pom.xml

增加spring项目依赖

<dependencies>

<dependency>

<groupId>org.springframework</groupId>

<artifactId>spring-context</artifactId>

<version>4.1.6.RELEASE</version>

</dependency>

</dependencies>

增加编译配置:

<build>

<plugins>

<plugin>

<groupId>org.springframework.boot</groupId>

<artifactId>spring-boot-maven-plugin</artifactId>

</plugin>

<plugin>

<groupId>org.springframework.boot</groupId>

<artifactId>spring-boot-maven-plugin</artifactId>

<dependencies>

<dependency>

<groupId>org.springframework</groupId>

<artifactId>springloaded</artifactId>

<version>1.2.0.RELEASE</version>

</dependency>

</dependencies>

</plugin>

</plugins>

</build>

spring项目快速搭建

6、第六步

查看项目的依赖,这里就是spring项目的快速创建

spring项目快速搭建

  • idea如何设置项目编码
  • Navicat Premium中如何打开数据树
  • Eclipse从Git上下载代码
  • Redis新版本(v6.0及之后)安装配置图文教程(一)
  • textarea怎么获取自动换行
  • 热门搜索
    维生素b族的作用 什么的启示 购房合同什么时候签 学生社保卡有什么用 我国是什么时候采用公历的 青青子衿悠悠我心什么意思 送男朋友什么生日礼物 踌躇满志是什么意思 学海无涯苦作舟的上一句是什么 考上大学送什么礼物