@RunWith(SpringRunner.class)
@SpringBootTest(classes = App.class)// 就是你springboot的启动类
public class IUserServiceTest {


@Autowired
private IUserService userService;

@Test
public void getById() {
System.out.println(userService.getById(6L));
}
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
相关资源
相似解决方案