@RunWith(SpringRunner.class)
@SpringBootTest
public class Test {
@Autowired
GpdbService gpdbService;
@org.junit.Test
public void test1(){
List<Map<String, Object>> mapList = gpdbService.regionList(null);
mapList.forEach(map -> System.out.println(map));
}
}
加入@RunWith(SpringRunner.class)注解