springboot概念
Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can “just run”.
构建项目
方式一、在线构建项目
- 构建springboot项目
- 在线构建地址:https://start.spring.io/
- 在线查看项目信息
方式二、通过ide工具构建
- idea构建 file -> new -> project
- 选择项目类型
- 填写项目基本信息
- 选择构建项目要添加的依赖
- 确认信息,开始构建项目
开发,编写你的代码
- 构建之后项目的结构
- 编写自己的代码
- 启动项目
- 访问添加代码接口
- 修改启动端口和context-path
application.properties
或者application.yml文件,启动项目
- 访问验证
修改启动banner
- 在线banner地址:https://www.bootschool.net/ascii
- 在线生成banner
- 把在线生成的banner.txt文件放到项目的resources目录下,启动效果