package com.xzff.web.entity;
import com.alibaba.fastjson.JSONObject;
import com.xzff.web.service.CityCardService;
import org.apache.commons.io.FileUtils;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Field;
import java.time.LocalDateTime;
import java.util.ArrayList;
//@RunWith(SpringRunner.class)
//@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class CityCardTest {
@Autowired
CityCardService cityCardService;
@Test
public void importDb()
java批量读取本地json文件并解析数据,插入数据库
最新推荐文章于 2025-04-19 19:00:00 发布