mirror of
https://gitee.com/52itstyle/spring-boot-seckill.git
synced 2025-12-30 10:22:26 +00:00
Actuator健康监控
This commit is contained in:
5
pom.xml
5
pom.xml
@@ -126,6 +126,11 @@
|
||||
<artifactId>fastjson</artifactId>
|
||||
<version>1.2.49</version>
|
||||
</dependency>
|
||||
<!-- 监控 -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<finalName>spring-boot-seckill</finalName><plugins>
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.itstyle.seckill.web;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
@Api(tags ="抢红包")
|
||||
@RestController
|
||||
@RequestMapping("/redPacket")
|
||||
public class RedPacketController {
|
||||
|
||||
}
|
||||
@@ -110,4 +110,31 @@ spring.freemarker.html.path = D://file//
|
||||
# \u9a8c\u8bc1\u7801\u53c2\u6570(\u81ea\u884c\u66ff\u6362)
|
||||
qq.captcha.url= https://ssl.captcha.qq.com/ticket/verify
|
||||
qq.captcha.aid= 20426***
|
||||
qq.captcha.AppSecretKey= 0OsIkPt******
|
||||
qq.captcha.AppSecretKey= 0OsIkPt******
|
||||
|
||||
# \u76d1\u63a7\u7684HTTP\u7aef\u53e3
|
||||
management.port=28806
|
||||
# \u5ffd\u7565\u62e6\u622a
|
||||
management.security.enabled=false
|
||||
# \u5f53\u524d\u5e94\u7528\u4fe1\u606f
|
||||
info.app.version=v1.0.0
|
||||
info.app.name=\u722a\u54c7\u7b14\u8bb0
|
||||
info.app.email=345849402@qq.com
|
||||
info.app.url=https://blog.52itstyle.com
|
||||
#\u5f00\u542fshutdown\u8fdc\u7a0b\u5173\u95ed\u529f\u80fd
|
||||
endpoints.shutdown.enabled=true
|
||||
#\u8bbf\u95ee\uff1ahttp://localhost:28806/shutdown \u5173\u95ed\u670d\u52a1
|
||||
#\u5173\u95edmetrics\u529f\u80fd
|
||||
#endpoints.metrics.enabled=false
|
||||
#\u8bbe\u7f6ebeansId
|
||||
#endpoints.beans.id=mybean
|
||||
#\u8bbe\u7f6ebeans\u8def\u5f84
|
||||
#endpoints.beans.path=/bean
|
||||
#\u5173\u95edbeans \u529f\u80fd
|
||||
#endpoints.beans.enabled=false
|
||||
#\u5173\u95ed\u6240\u6709\u7684
|
||||
#endpoints.enabled=false
|
||||
#\u5f00\u542f\u5355\u4e2abeans\u529f\u80fd
|
||||
#endpoints.beans.enabled=true
|
||||
#\u6240\u6709\u8bbf\u95ee\u6dfb\u52a0\u6839\u76ee\u5f55
|
||||
#management.context-path=/manage
|
||||
Reference in New Issue
Block a user