This commit is contained in:
zhangzhiqiang
2022-12-14 17:18:25 +08:00
parent 373f983618
commit ec0b8b7bc3

View File

@@ -2,14 +2,11 @@ package org.nl.sso;
import com.alibaba.fastjson.JSON;
import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.nl.AppRun;
import org.nl.system.service.user.SysUserService;
import org.nl.system.service.user.dao.SysUser;
import org.nl.system.service.user.dao.mapper.SysUserMapper;
import org.nl.system.service.user.UserService;
import org.nl.system.service.user.dao.User;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.annotation.Resource;
import java.util.List;
@@ -23,10 +20,10 @@ import java.util.List;
public class MybatisTest {
@Resource
SysUserService sysUserService;
UserService sysUserService;
@Test
public void mybatisTest(){
List<SysUser> list = sysUserService.list();
List<User> list = sysUserService.list();
System.out.println(JSON.toJSONString(list));
}