0x00 SpringBoot,启动

发布时间 2023-08-11 20:51:44作者: Icfh

前言

此系列将记录SpringBoot的学习

记录

环境

  • IDE:IDEA2023

  • Java

如何构建项目

在新建项目中选择Spring Initializer

image-20230807160202489

选择下一步后,SpringBoot的版本选择3.0.9,然后依赖项选择web中的Spring Web

image-20230807160253682

选择创建,那么一个基本的SpringBoot项目就创建起来了

8080端口占用

./src/main/resources/application.properties修改配置,将服务端口换成其他端口

image-20230807160721849

启动项目

image-20230807160945699

浏览器访问127.0.0.1:8888

image-20230807161054400