1
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user