1.eclipse创建maven web项目,POM文件配置如下
微服务框架(一)--Eclipse使用maven创建spring boot项目
2.添加项目目录结构
微服务框架(一)--Eclipse使用maven创建spring boot项目

3.配置请求处理(controller)
微服务框架(一)--Eclipse使用maven创建spring boot项目
4.配置启动类(application)
微服务框架(一)--Eclipse使用maven创建spring boot项目
5.运行项目:项目启动成功如下图
微服务框架(一)--Eclipse使用maven创建spring boot项目

相关文章: