whyclxw
2021-04-16 bc69b7b1d77f5e1295bd45b7dc401673eef46e54
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.example.lxw;
 
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.lxw.mapper.User_InfMapper;
import com.example.lxw.pojo.User_inf;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
 
import java.util.List;
 
/**
 * @author lxw
 * @create 2021-04-14 10:20
 */
@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class MpperTest {
   @Autowired
    private User_InfMapper user_infMapper;
 
    @Test
    public void searchAll(){
        List<User_inf> list= user_infMapper.selectList(new QueryWrapper<>());
        list.forEach(uinf-> System.out.println(uinf.toString()));
    }
    @Test
    public void showBean(){
 
    }
}