fastjson list 添加entiey,一个字段有200长度的值,使用JSON.toJSONString(list) 会让idea卡顿

06odsfpq  于 2021-11-27  发布在  Java
关注(0)|答案(2)|浏览(185)
  • No description provided.*
hs1ihplo

hs1ihplo1#

@Setter
@Getter
public class ClassBean {

    private String id;

    private String savetime;

    private String updatetime;

    private String flagLegal;

    private String illegalContent;

    private String flagDelete;

    private String dataSavetime;

    private String dataUpdatetime;

    private String kindergartenId;

    private String name;

    private String code;

    private String grade;

    private String picture;

    private String remark;

    public static void main(String[] args) {
        List<ClassBean> list = new ArrayList<>();
        for (int i = 0; i < 500; i++) {
            ClassBean bean = new ClassBean();
            bean.setId(UUID.randomUUID().toString());
            bean.setFlagDelete("1");
            bean.setDataSavetime("1");
            bean.setDataUpdatetime("2");
            bean.setKindergartenId("3");
            bean.setName("1");
            bean.setCode("2");
            bean.setGrade("3");
            bean.setPicture("China's industrial output rose at a faster-than-expected pace in October, while retail sales continued to recover albeit at a slower-than-forecast pace as the world's second-largest economy emerged from its Covid-19 slump. Industrial output climbed 6.9%% in October from a year earlier, data from the National Statistics Bureau showed on Monday, in line with September's gain. Analysts polled by Reuters had expected a 6.5% rise. After the pandemic paralyzed huge swathes of the economy this year, the industrial sector has staged an impressive turnaround, helped by resilient exports. Now, with coronavirus largely under control in China, consumers are opening up their wallets again in a further boost to economic activity. Retail sales rose 4.3% on-year, missing analysts' forecasts for 4.9% growth but faster than a 3.3% increase in September. China's auto industry reported robust 12.5% growth in October vehicle sales thanks to surging demand for electric cars and trucks. Domestic tourism also saw a strong rebound over the Golden Week holiday last month, although levels were still well short of last year's.Fixed-asset investment rose 1.8% in January-October from the same period last year, compared with a forecast 1.6% growth and a 0.8% increase in the first nine months of the year. Private sector fixed-asset investment, which accounts for 60% of total investment, fell 0.7% in January-October, compared with a 1.5% decline in the first nine months of the year. China's economic recovery looks to be accelerating in the fourth quarter, with a rebound in demand, strong credit growth and stimulus measures expected to provide a strong tailwind into 2021. But surging coronavirus infections in Europe and the United States have prompted renewed lockdowns, clouding the global outlook.>");
            bean.setRemark("China's industrial output rose at a faster-than-expected pace in October, while retail sales continued to recover albeit at a slower-than-forecast pace as the world's second-largest economy emerged from its Covid-19 slump. Industrial output climbed 6.9%% in October from a year earlier, data from the National Statistics Bureau showed on Monday, in line with September's gain. Analysts polled by Reuters had expected a 6.5% rise. After the pandemic paralyzed huge swathes of the economy this year, the industrial sector has staged an impressive turnaround, helped by resilient exports. Now, with coronavirus largely under control in China, consumers are opening up their wallets again in a further boost to economic activity. Retail sales rose 4.3% on-year, missing analysts' forecasts for 4.9% growth but faster than a 3.3% increase in September. China's auto industry reported robust 12.5% growth in October vehicle sales thanks to surging demand for electric cars and trucks. Domestic tourism also saw a strong rebound over the Golden Week holiday last month, although levels were still well short of last year's.Fixed-asset investment rose 1.8% in January-October from the same period last year, compared with a forecast 1.6% growth and a 0.8% increase in the first nine months of the year. Private sector fixed-asset investment, which accounts for 60% of total investment, fell 0.7% in January-October, compared with a 1.5% decline in the first nine months of the year. China's economic recovery looks to be accelerating in the fourth quarter, with a rebound in demand, strong credit growth and stimulus measures expected to provide a strong tailwind into 2021. But surging coronavirus infections in Europe and the United States have prompted renewed lockdowns, clouding the global outlook.>");
            list.add(bean);
        }

        System.out.println(JSON.toJSONString(list));
    }
}

使用的是1.2.73版本

o2gm4chl

o2gm4chl2#

让老板买新电脑吧😃

相关问题