Skip to content

Commit 27d59fb

Browse files
committed
feat: 引入 spring-boot-admin
1 parent f75de31 commit 27d59fb

4 files changed

Lines changed: 28 additions & 0 deletions

File tree

application/pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@
4141
<groupId>com.github.ulisesbocchio</groupId>
4242
<artifactId>jasypt-spring-boot-starter</artifactId>
4343
</dependency>
44+
<!--SBA-->
45+
<dependency>
46+
<groupId>org.springframework.boot</groupId>
47+
<artifactId>spring-boot-starter-actuator</artifactId>
48+
</dependency>
49+
<dependency>
50+
<groupId>de.codecentric</groupId>
51+
<artifactId>spring-boot-admin-starter-client</artifactId>
52+
</dependency>
4453
<!--子模块-->
4554
<!--framework 模块-->
4655
<dependency>

application/src/main/resources/application-dev.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,5 @@ uni-boot:
4848
secret: 12345678123456781234567812345678
4949
ignore-urls:
5050
- /druid/**
51+
- /actuator/**
5152
- /demo/**

application/src/main/resources/application.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ spring:
77
jackson:
88
date-format: yyyy-MM-dd HH:mm:ss
99
time-zone: GMT+8
10+
boot:
11+
admin:
12+
client:
13+
url: http://127.0.0.1:1111
1014
# redis 公共配置
1115
redis:
1216
lettuce:
@@ -68,3 +72,11 @@ logging:
6872
file:
6973
path: /log/${uni-boot.config.name}
7074

75+
# actuator
76+
management:
77+
endpoints:
78+
web:
79+
exposure:
80+
include: '*'
81+
82+

pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
<jasypt.version>2.1.1</jasypt.version>
4343
<druid.version>1.2.15</druid.version>
4444
<dynamic-ds.version>3.6.0</dynamic-ds.version>
45+
<sba.version>2.6.11</sba.version>
4546
</properties>
4647

4748
<dependencies>
@@ -147,6 +148,11 @@
147148
<artifactId>dynamic-datasource-spring-boot-starter</artifactId>
148149
<version>${dynamic-ds.version}</version>
149150
</dependency>
151+
<dependency>
152+
<groupId>de.codecentric</groupId>
153+
<artifactId>spring-boot-admin-starter-client</artifactId>
154+
<version>${sba.version}</version>
155+
</dependency>
150156
</dependencies>
151157
</dependencyManagement>
152158

0 commit comments

Comments
 (0)