SpringBoot创建web项目

2024-11-04 02:23:56

1、创建一个maven项目,并在pom文件中引入SpringBoot及web组件

SpringBoot创建web项目

3、编写controller处理器,处理请求路径为/test的请求

SpringBoot创建web项目

5、在浏览器中输入localhost:8080/test进行测试,结果如下

SpringBoot创建web项目
猜你喜欢