Skip to content

Latest commit

 

History

History
141 lines (131 loc) · 3.73 KB

spring-actuator.md

File metadata and controls

141 lines (131 loc) · 3.73 KB

SPRING ACTUATOR

//when add documentation swagger cause compile error. Use these swagger versions. 

    <dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-actuator</artifactId>
		</dependency>
		<dependency>
			<groupId>io.springfox</groupId>
			<artifactId>springfox-swagger2</artifactId>
			<version>2.9.2</version>
		</dependency>
		<dependency>
			<groupId>io.springfox</groupId>
			<artifactId>springfox-swagger-ui</artifactId>
			<version>2.9.2</version>
    </dependency>
    
management:
 endpoints:
   web:
     exposure:
       include: "*"
 endpoint:
   health:
     show-details: ALWAYS
{
   "_links": {
       "self": {
           "href": "http://localhost:8080/actuator",
           "templated": false
       },
       "beans": {
           "href": "http://localhost:8080/actuator/beans",
           "templated": false
       },
       "caches-cache": {
           "href": "http://localhost:8080/actuator/caches/{cache}",
           "templated": true
       },
       "caches": {
           "href": "http://localhost:8080/actuator/caches",
           "templated": false
       },
       "health-path": {
           "href": "http://localhost:8080/actuator/health/{*path}",
           "templated": true
       },
       "health": {
           "href": "http://localhost:8080/actuator/health",
           "templated": false
       },
       "info": {
           "href": "http://localhost:8080/actuator/info",
           "templated": false
       },
       "conditions": {
           "href": "http://localhost:8080/actuator/conditions",
           "templated": false
       },
       "configprops": {
           "href": "http://localhost:8080/actuator/configprops",
           "templated": false
       },
       "configprops-prefix": {
           "href": "http://localhost:8080/actuator/configprops/{prefix}",
           "templated": true
       },
       "env": {
           "href": "http://localhost:8080/actuator/env",
           "templated": false
       },
       "env-toMatch": {
           "href": "http://localhost:8080/actuator/env/{toMatch}",
           "templated": true
       },
       "loggers": {
           "href": "http://localhost:8080/actuator/loggers",
           "templated": false
       },
       "loggers-name": {
           "href": "http://localhost:8080/actuator/loggers/{name}",
           "templated": true
       },
       "heapdump": {
           "href": "http://localhost:8080/actuator/heapdump",
           "templated": false
       },
       "threaddump": {
           "href": "http://localhost:8080/actuator/threaddump",
           "templated": false
       },
       "metrics-requiredMetricName": {
           "href": "http://localhost:8080/actuator/metrics/{requiredMetricName}",
           "templated": true
       },
       "metrics": {
           "href": "http://localhost:8080/actuator/metrics",
           "templated": false
       },
       "scheduledtasks": {
           "href": "http://localhost:8080/actuator/scheduledtasks",
           "templated": false
       },
       "mappings": {
           "href": "http://localhost:8080/actuator/mappings",
           "templated": false
       }
   }
}
//http://localhost:8080/actuator/scheduledtasks
{
   "cron": [
       {
           "runnable": {
               "target": "com.alper.couponear.historysystem.HistoryService.deleteData"
           },
           "expression": "0 */1 * * * ?"
       }
   ],
   "fixedDelay": [],
   "fixedRate": [],
   "custom": []
}

For more info : https://github.com/AlperMulayim/couponearapp/commit/5d0f5b8333562dfceb0ab76d6b6d6763485aea05