01、eclipse创建springboot的HelloWorld项目

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_22701869/article/details/80046944

备注:环境(springboot2,jdk8,eclipse oxygen);要安装springboot插件。

项目地址:https://github.com/Honryguan/springboot_test.git

https://github.com/Honryguan/springboot_test.git
https://github.com/Honryguan/springboot_test.git
https://github.com/Honryguan/springboot_test.git

第一步:新建项目,选择Spring Boot ->Spring Starter Project

第二步:配置jdk,项目名等


第三步:


项目目录结构如下


入口运行主函数


在入口主函数相同目录下新建HelloWorldTest


最后运行入口主函数Springboot01Application启动服务,运行成功会显示端口:


打开浏览器,访问http://localhost:8080/hello


至此springboot的hello world测试完成!

猜你喜欢

转载自blog.csdn.net/qq_22701869/article/details/80046944