springboot(一)入门篇

引言

相信学习springboot时,基本简介都有所了解,我就不再这里介绍了,接下来我们一起学习与实践操作。

1.idea下新建一个springboot项目:      Create New Project-->Spring Initializr-->next

 

2.如上图所示,Spring Boot 的基础结构共三个文件:

src/main/java 程序开发以及主程序入口

src/main/resources 配置文件

src/test/java 测试程序

3.pom.xml中相关依赖介绍

4.一个简单的案例

新建一个controller类

运行SpringbootdemoApplicationL类如下图,启动成功!!!

访问地址http://localhost:8080/hello

5.实现热启动

 

猜你喜欢

转载自blog.csdn.net/qq_42014192/article/details/88742559