快速搭建spring:https://start.spring.io/

选择Spring Web和Spring Actuator

actuator是一个运维相关的模块。

spring start

启动以后,我们可以看到SpringBoot默认配置Tomcat。我自己并没有配置任何东西。

打开一个terminal,访问我们的hello接口,以及通过actuator查看项目是否启动成功

spring start

actuator 返回 的是UP,代表健康。

相关文章:

  • 2021-06-26
  • 2021-05-16
  • 2022-12-23
  • 2021-10-20
  • 2021-11-02
  • 2022-01-21
  • 2021-09-28
猜你喜欢
  • 2021-08-29
  • 2021-12-22
  • 2021-09-12
  • 2022-12-23
  • 2021-08-14
  • 2022-03-10
  • 2021-11-20
相关资源
相似解决方案