IntelliJ IDEA创建第一个Spring boot项目

简介: IntelliJ IDEA创建第一个Spring boot项目

下载maven:http://maven.apache.org/downl...

微信图片_20220609125533.png

开发工具:IntelliJ IDEA

JDK: Java JDK1.8

1.为了第一个项目初始化速度加快,我们先来配置maven:


添加配置:

微信图片_20220609125511.png

选择Build,Execution,Deployment下, Bulid Tools下的Maven,在勾选右边红框中的Override,

微信图片_20220609125449.png

选择你下载后的文件夹中的settings.xml

微信图片_20220609125424.png

2.使用IntelliJ IDEA创建springboot项目


1.创建新项目

微信图片_20220609125400.png

2.选择spring,选择jdk1.8

微信图片_20220609125336.png

3.填写group ,选择packaging--- War, 选择Next

微信图片_20220609125313.png

4.选择Web, 点击Next,下一步点击finish就好了。

微信图片_20220609125239.png

5.等着项目初始化完成就可以了。

6.在项目的applicaiton右键,选择Run "DemoApplication"

微信图片_20220609125212.png

运行成功的截图:

微信图片_20220609125140.png

目录
相关文章
|
13天前
|
Java Maven
Idea配置项目的热启动
Idea配置项目的热启动
43 5
Idea配置项目的热启动
|
17天前
|
网络协议 Java Shell
java spring 项目若依框架启动失败,启动不了服务提示端口8080占用escription: Web server failed to start. Port 8080 was already in use. Action: Identify and stop the process that’s listening on port 8080 or configure this application to listen on another port-优雅草卓伊凡解决方案
java spring 项目若依框架启动失败,启动不了服务提示端口8080占用escription: Web server failed to start. Port 8080 was already in use. Action: Identify and stop the process that’s listening on port 8080 or configure this application to listen on another port-优雅草卓伊凡解决方案
53 7
|
2月前
|
XML Java 数据格式
使用idea中的Live Templates自定义自动生成Spring所需的XML配置文件格式
本文介绍了在使用Spring框架时,如何通过创建`applicationContext.xml`配置文件来管理对象。首先,在resources目录下新建XML配置文件,并通过IDEA自动生成部分配置。为完善配置,特别是添加AOP支持,可以通过IDEA的Live Templates功能自定义XML模板。具体步骤包括:连续按两次Shift搜索Live Templates,配置模板内容,输入特定前缀(如spring)并按Tab键即可快速生成完整的Spring配置文件。这样可以大大提高开发效率,减少重复工作。
使用idea中的Live Templates自定义自动生成Spring所需的XML配置文件格式
|
2月前
|
存储 JSON 前端开发
【Spring项目】表白墙,留言板项目的实现
本文主要介绍了表白墙项目的实现,包含前端和后端代码,以及测试
|
2月前
|
JSON 前端开发 Java
|
2月前
|
缓存 前端开发 Java
【Spring】——SpringBoot项目创建
SpringBoot项目创建,SpringBootApplication启动类,target文件,web服务器,tomcat,访问服务器
|
2月前
|
前端开发 Java 开发者
这款免费 IDEA 插件让你开发 Spring 程序更简单
Feign-Helper 是一款支持 Spring 框架的 IDEA 免费插件,提供 URL 快速搜索、Spring Web Controller 路径一键复制及 Feign 与 Controller 接口互相导航等功能,极大提升了开发效率。
|
3月前
|
存储 运维 安全
Spring运维之boot项目多环境(yaml 多文件 proerties)及分组管理与开发控制
通过以上措施,可以保证Spring Boot项目的配置管理在专业水准上,并且易于维护和管理,符合搜索引擎收录标准。
89 2
|
4月前
|
缓存 IDE Java
idea的maven项目打包时没有source下的文件
【10月更文挑战第21天】idea的maven项目打包时没有source下的文件
267 1
|
前端开发 Java 数据库连接
【springcloud合集】03:IDEA新建父工程project
【springcloud合集】03:IDEA新建父工程project
395 0
【springcloud合集】03:IDEA新建父工程project

热门文章

最新文章