在Spring官网使用脚手架:
https://start.spring.io/
选择3项依赖:


编写代码:

启动运行应用:
启动了8080端口

访问:
http://localhost:8080/hyc
健康检查:
http://localhost:8080/actuator/health
在Spring官网使用脚手架:
https://start.spring.io/
选择3项依赖:


编写代码:

启动运行应用:
启动了8080端口

访问:
http://localhost:8080/hyc
健康检查:
http://localhost:8080/actuator/health