Skip to content

Commit cea77ae

Browse files
committed
删除idea自动生成无用代码并更新版本
1 parent 952be44 commit cea77ae

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Spring-Boot-Swagger2/pom.xml

+6
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@
4343
<groupId>org.springframework.boot</groupId>
4444
<artifactId>spring-boot-starter-test</artifactId>
4545
<scope>test</scope>
46+
<exclusions>
47+
<exclusion>
48+
<groupId>org.junit.vintage</groupId>
49+
<artifactId>junit-vintage-engine</artifactId>
50+
</exclusion>
51+
</exclusions>
4652
</dependency>
4753
</dependencies>
4854

Spring-Boot-Swagger2/src/test/java/com/example/swagger2/SpringBootSwagger2ApplicationTests.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
package com.example.swagger2;
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
107
public class SpringBootSwagger2ApplicationTests {
118

0 commit comments

Comments
 (0)