mail_yanpeng@163.com
4 years ago
5 changed files with 31 additions and 9 deletions
@ -1,13 +1,23 @@ |
|||
package com.aiprose.mbp; |
|||
|
|||
import com.aiprose.mbp.entity.User; |
|||
import com.aiprose.mbp.service.UserService; |
|||
import org.junit.jupiter.api.Test; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.boot.test.context.SpringBootTest; |
|||
|
|||
import java.util.List; |
|||
|
|||
@SpringBootTest |
|||
class MbpApplicationTests { |
|||
|
|||
@Autowired |
|||
private UserService userService; |
|||
|
|||
@Test |
|||
void contextLoads() { |
|||
List<User> list = userService.list(); |
|||
System.out.println(list); |
|||
} |
|||
|
|||
} |
|||
|
Loading…
Reference in new issue