备注:环境(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测试完成!