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;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = SpringbootMybatisApplication.class)
public class MybatisTest{
@Autowired
private AccountMapper accountMapper;
@Test
public void test(){
List<Account> accountList = accountMapper.queryAccountList();
System.out.println(accountList);
}