Skip to content

Commit

Permalink
Spring Boot Admin with Actuator
Browse files Browse the repository at this point in the history
  • Loading branch information
Castruu committed Jul 17, 2022
1 parent 191533d commit e34e103
Show file tree
Hide file tree
Showing 12 changed files with 814 additions and 0 deletions.
24 changes: 24 additions & 0 deletions example52/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<packaging>jar</packaging>
<properties>
<java.version>11</java.version>
<spring-boot-admin.version>2.7.1</spring-boot-admin.version>
</properties>
<dependencies>
<dependency>
Expand Down Expand Up @@ -105,8 +106,31 @@
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-client</artifactId>
</dependency>

<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-micrometer</artifactId>
</dependency>

</dependencies>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-dependencies</artifactId>
<version>${spring-boot-admin.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>



<build>
<plugins>
Expand Down
7 changes: 7 additions & 0 deletions example52/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,10 @@ eazyschool.contact.successMessage=Your message was created successfully

management.endpoints.web.base-path=/eschool/actuator
management.endpoints.web.exposure.include=*

spring.application.name=EazySchool

#Spring Boot Admin Server Configuration
spring.boot.admin.client.url=http://localhost:9000
spring.boot.admin.client.instance.metadata.user.name=[email protected]
spring.boot.admin.client.instance.metadata.user.password=admin
33 changes: 33 additions & 0 deletions example53/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/

### VS Code ###
.vscode/
Binary file added example53/.mvn/wrapper/maven-wrapper.jar
Binary file not shown.
2 changes: 2 additions & 0 deletions example53/.mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.5/apache-maven-3.8.5-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar
Loading

0 comments on commit e34e103

Please sign in to comment.