Skip to content

Commit 1c1caea

Browse files
committed
update
1 parent a5417dd commit 1c1caea

File tree

3 files changed

+9
-17
lines changed

3 files changed

+9
-17
lines changed

springboot-mybatis/src/main/resources/sql/schema.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# CREATE DATABASE IF NOT EXISTS pos default charset utf8 COLLATE utf8_general_ci;
2-
# SET FOREIGN_KEY_CHECKS=0;
3-
# USE pos;
1+
CREATE DATABASE IF NOT EXISTS pos default charset utf8 COLLATE utf8_general_ci;
2+
SET FOREIGN_KEY_CHECKS=0;
3+
USE pos;
44

55
-- 用户表
66
DROP TABLE IF EXISTS `t_user`;

springboot-restful/pom.xml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<parent>
1616
<groupId>org.springframework.boot</groupId>
1717
<artifactId>spring-boot-starter-parent</artifactId>
18-
<version>2.0.4.RELEASE</version>
18+
<version>2.5.5</version>
1919
</parent>
2020

2121
<properties>
@@ -28,16 +28,6 @@
2828
<dependency>
2929
<groupId>org.springframework.boot</groupId>
3030
<artifactId>spring-boot-starter-web</artifactId>
31-
<exclusions>
32-
<exclusion>
33-
<groupId>org.springframework.boot</groupId>
34-
<artifactId>spring-boot-starter-tomcat</artifactId>
35-
</exclusion>
36-
</exclusions>
37-
</dependency>
38-
<dependency>
39-
<groupId>org.springframework.boot</groupId>
40-
<artifactId>spring-boot-starter-jetty</artifactId>
4131
</dependency>
4232
<dependency>
4333
<groupId>org.springframework.boot</groupId>

springboot-restful/src/test/java/com/xncoding/pos/ApplicationTests.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
import com.xncoding.pos.model.BaseResponse;
55
import com.xncoding.pos.model.User;
66
import com.xncoding.pos.util.JacksonUtil;
7-
import org.junit.Test;
8-
import org.junit.runner.RunWith;
7+
8+
import org.junit.jupiter.api.Test;
9+
import org.junit.jupiter.api.extension.ExtendWith;
910
import org.springframework.beans.factory.annotation.Autowired;
1011
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
1112
import org.springframework.boot.test.context.SpringBootTest;
13+
import org.springframework.test.context.junit.jupiter.SpringExtension;
1214
import org.springframework.test.context.junit4.SpringRunner;
1315
import org.springframework.test.web.servlet.MockMvc;
1416
import org.springframework.test.web.servlet.MvcResult;
@@ -38,7 +40,7 @@
3840
*/
3941

4042
@AutoConfigureMockMvc
41-
@RunWith(SpringRunner.class)
43+
@ExtendWith(SpringExtension.class)
4244
@SpringBootTest(classes = Application.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
4345
public class ApplicationTests {
4446
@Autowired

0 commit comments

Comments
 (0)