1.eclipse创建maven web项目,POM文件配置如下 2.添加项目目录结构 3.配置请求处理(controller) 4.配置启动类(application) 5.运行项目:项目启动成功如下图