实现步骤:
①创建Maven项目
②导入SpringBoot起步依赖
③定义Controller
④编写引导类启动测试
一、创建Maven项目
这里以创建项目项目SpringBoot—helloworld为例
二、导入SpringBoot起步依赖
导入springboot工程需要继承的父工程和web开发的起步依赖:
如下:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.8.RELEASE</version>
&l