Skip to content

Commit a9ab6f3

Browse files
committed
更新版本
1 parent 789dd84 commit a9ab6f3

File tree

5 files changed

+27
-21
lines changed

5 files changed

+27
-21
lines changed

Spring-Boot-Admin/Spring-Boot-Admin-Client/pom.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>2.1.4.RELEASE</version>
8+
<version>2.2.5.RELEASE</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111
<groupId>com.example</groupId>
@@ -26,12 +26,18 @@
2626
<dependency>
2727
<groupId>de.codecentric</groupId>
2828
<artifactId>spring-boot-admin-starter-client</artifactId>
29-
<version>2.1.4</version>
29+
<version>2.2.2</version>
3030
</dependency>
3131
<dependency>
3232
<groupId>org.springframework.boot</groupId>
3333
<artifactId>spring-boot-starter-test</artifactId>
3434
<scope>test</scope>
35+
<exclusions>
36+
<exclusion>
37+
<groupId>org.junit.vintage</groupId>
38+
<artifactId>junit-vintage-engine</artifactId>
39+
</exclusion>
40+
</exclusions>
3541
</dependency>
3642
</dependencies>
3743

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
package com.example.client;
22

3-
import org.junit.Test;
4-
import org.junit.runner.RunWith;
3+
import org.junit.jupiter.api.Test;
54
import org.springframework.boot.test.context.SpringBootTest;
6-
import org.springframework.test.context.junit4.SpringRunner;
75

8-
@RunWith(SpringRunner.class)
96
@SpringBootTest
10-
public class SpringBootAdminClientApplicationTests {
7+
class SpringBootAdminClientApplicationTests {
118

129
@Test
13-
public void contextLoads() {
10+
void contextLoads() {
1411
}
1512

1613
}

Spring-Boot-Admin/Spring-Boot-Admin-Server/pom.xml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>2.1.4.RELEASE</version>
8+
<version>2.2.5.RELEASE</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111
<groupId>com.example</groupId>
@@ -26,12 +26,12 @@
2626
<dependency>
2727
<groupId>de.codecentric</groupId>
2828
<artifactId>spring-boot-admin-server</artifactId>
29-
<version>2.1.4</version>
29+
<version>2.2.2</version>
3030
</dependency>
3131
<dependency>
3232
<groupId>de.codecentric</groupId>
3333
<artifactId>spring-boot-admin-server-ui</artifactId>
34-
<version>2.1.4</version>
34+
<version>2.2.2</version>
3535
</dependency>
3636
<dependency>
3737
<groupId>org.springframework.boot</groupId>
@@ -41,6 +41,12 @@
4141
<groupId>org.springframework.boot</groupId>
4242
<artifactId>spring-boot-starter-test</artifactId>
4343
<scope>test</scope>
44+
<exclusions>
45+
<exclusion>
46+
<groupId>org.junit.vintage</groupId>
47+
<artifactId>junit-vintage-engine</artifactId>
48+
</exclusion>
49+
</exclusions>
4450
</dependency>
4551
</dependencies>
4652

Spring-Boot-Admin/Spring-Boot-Admin-Server/src/main/resources/application.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ server:
55
spring:
66
mail:
77
host: smtp.qq.com #发送邮件服务器
8-
username: 1206291365@qq.com #QQ邮箱
8+
username: xxx@qq.com #QQ邮箱
99
#授权码参考:https://service.mail.qq.com/cgi-bin/help?subtype=1&&no=1001256&&id=28
10-
password: zwjoyleymbhrfjfh #客户端授权码
10+
password: xxx #客户端授权码
1111
protocol: smtp #发送邮件协议
1212
default-encoding: utf-8 #编码格式
1313
properties:
@@ -24,5 +24,5 @@ spring:
2424
admin:
2525
notify:
2626
mail:
27-
from: 1206291365@qq.com
28-
to: zmdeng994@163.com
27+
from: xxx@qq.com
28+
to: xxx@163.com
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
package com.example.server;
22

3-
import org.junit.Test;
4-
import org.junit.runner.RunWith;
3+
import org.junit.jupiter.api.Test;
54
import org.springframework.boot.test.context.SpringBootTest;
6-
import org.springframework.test.context.junit4.SpringRunner;
75

8-
@RunWith(SpringRunner.class)
96
@SpringBootTest
10-
public class SpringBootAdminServerApplicationTests {
7+
class SpringBootAdminServerApplicationTests {
118

129
@Test
13-
public void contextLoads() {
10+
void contextLoads() {
1411
}
1512

1613
}

0 commit comments

Comments
 (0)