File tree Expand file tree Collapse file tree 3 files changed +9
-17
lines changed 
springboot-mybatis/src/main/resources/sql 
src/test/java/com/xncoding/pos Expand file tree Collapse file tree 3 files changed +9
-17
lines changed Original file line number Diff line number Diff line change 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--  用户表
66DROP  TABLE  IF EXISTS ` t_user`  ;
Original file line number Diff line number Diff line change 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 >
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 >
Original file line number Diff line number Diff line change 44import  com .xncoding .pos .model .BaseResponse ;
55import  com .xncoding .pos .model .User ;
66import  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 ;
910import  org .springframework .beans .factory .annotation .Autowired ;
1011import  org .springframework .boot .test .autoconfigure .web .servlet .AutoConfigureMockMvc ;
1112import  org .springframework .boot .test .context .SpringBootTest ;
13+ import  org .springframework .test .context .junit .jupiter .SpringExtension ;
1214import  org .springframework .test .context .junit4 .SpringRunner ;
1315import  org .springframework .test .web .servlet .MockMvc ;
1416import  org .springframework .test .web .servlet .MvcResult ;
3840 */ 
3941
4042@ AutoConfigureMockMvc 
41- @ RunWith ( SpringRunner .class )
43+ @ ExtendWith ( SpringExtension .class )
4244@ SpringBootTest (classes  = Application .class , webEnvironment  = SpringBootTest .WebEnvironment .RANDOM_PORT )
4345public  class  ApplicationTests  {
4446    @ Autowired 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments