diff --git a/shop-web-app/pom.xml b/shop-web-app/pom.xml index b91be9b76..6778853de 100644 --- a/shop-web-app/pom.xml +++ b/shop-web-app/pom.xml @@ -91,6 +91,12 @@ spring-cloud-starter-alibaba-nacos-discovery + + + org.springframework.boot + spring-boot-starter-actuator + + org.projectlombok diff --git a/shop-web-app/src/main/resources/application.yml b/shop-web-app/src/main/resources/application.yml index f0fed3e03..e888bcc4f 100644 --- a/shop-web-app/src/main/resources/application.yml +++ b/shop-web-app/src/main/resources/application.yml @@ -60,3 +60,8 @@ swagger: description: 提供用户商城购物流程中的 API version: 1.0.0 base-package: cn.iocoder.mall.shopweb.controller + +# Actuator 监控配置项 +management: + server.port: 38088 # 独立端口,避免被暴露出去 + endpoints.web.exposure.include: '*' # 暴露所有监控端点