Skip to content

Commit

Permalink
Added the Spring Boot Health actuator.
Browse files Browse the repository at this point in the history
  • Loading branch information
nhkhai committed May 3, 2024
1 parent 52c250c commit 48ea51e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- <dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ springdoc.swagger-ui.path=/swagger-ui.html
# https://medium.com/code-with-farhan/spring-security-jwt-authentication-authorization-a2c6860be3cf
# jwt.session.period=60000

# Enable Actuator Endpoints.
# management.endpoints.web.exposure.include= "*"
management.endpoints.web.exposure.include=health
management.endpoint.health.show-details=always

# Profile management.
# Spring Boot will always read the application.properties file.
# Other's profile files, such as application-development.properties only will complement and replace the properties defined before.
Expand Down

0 comments on commit 48ea51e

Please sign in to comment.