创建ObjectMapper obj = new ObjectMapper(); 对象,对象的writeValueAsString 方法会把一个实体类(必须有get、set方法)转化为JSON对象。 package com.
確定! 回上一頁