后端返回前端数据,保留大写和下划线


import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
            ObjectNode outNode = objectMapper.createObjectNode();
            ArrayNode ipoList = outNode.putArray("OOOList");
            for (BusinessPropertiesResponse dto : bpList) {
                ObjectNode inNode = objectMapper.createObjectNode();
                inNode.put("xxxx", dto.getxxxx());
       
                ipoList.add(inNode);
            }

你可能感兴趣的:(后端返回前端数据,保留大写和下划线)