File tree Expand file tree Collapse file tree 5 files changed +27
-21
lines changed
src/test/java/com/example/client
test/java/com/example/server Expand file tree Collapse file tree 5 files changed +27
-21
lines changed Original file line number Diff line number Diff line change 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 >
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
Original file line number Diff line number Diff line change 11package com .example .client ;
22
3- import org .junit .Test ;
4- import org .junit .runner .RunWith ;
3+ import org .junit .jupiter .api .Test ;
54import 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}
Original file line number Diff line number Diff line change 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 >
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 >
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
Original file line number Diff line number Diff line change 55spring :
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
Original file line number Diff line number Diff line change 11package com .example .server ;
22
3- import org .junit .Test ;
4- import org .junit .runner .RunWith ;
3+ import org .junit .jupiter .api .Test ;
54import 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}
You can’t perform that action at this time.
0 commit comments