比如现在Subject持有Student和Teacher两个类的引用。再进行格式转会的时候,也就是执行JSONObject root = JSONObject.fromObject(sub, config);抛了异常16:00:41,031  WARN JSONObject:940 - Property 'transactionTimeout' has no read method. SKIPPED
16:00:41,031  WARN JSONObject:940 - Property 'autoReconnect' has no read method. SKIPPED
16:00:41,031  WARN JSONObject:940 - Property 'autoReconnectForConnectionPools' has no read method. SKIPPED
16:00:41,031  WARN JSONObject:940 - Property 'capitalizeDBMDTypes' has no read method. SKIPPED
16:00:41,031  WARN JSONObject:940 - Property 'characterEncoding' has no read method. SKIPPED
16:00:41,031  WARN JSONObject:940 - Property 'detectServerPreparedStmts' has no read method. SKIPPED
16:00:41,046  WARN JSONObject:940 - Property 'failedOver' has no read method. SKIPPED
16:00:41,046  WARN JSONObject:940 - Property 'NCharacterStream' has no read method. SKIPPED
16:00:41,046  WARN JSONObject:940 - Property 'NClob' has no read method. SKIPPED
16:00:41,046  WARN JSONObject:940 - Property 'NString' has no read method. SKIPPED
16:00:41,046  WARN JSONObject:940 - Property 'SQLXML' has no read method. SKIPPED
16:00:41,046  WARN JSONObject:940 - Property 'URL' has no read method. SKIPPED
16:00:41,046  WARN JSONObject:940 - Property 'array' has no read method. SKIPPED
16:00:41,046  WARN JSONObject:940 - Property 'asciiStream' has no read method. SKIPPED
16:00:41,062  WARN JSONObject:940 - Property 'bigDecimal' has no read method. SKIPPED
16:00:41,062  WARN JSONObject:940 - Property 'binaryStream' has no read method. SKIPPED
16:00:41,078  WARN JSONObject:940 - Property 'blob' has no read method. SKIPPED
16:00:41,078  WARN JSONObject:940 - Property 'boolean' has no read method. SKIPPED
16:00:41,078  WARN JSONObject:940 - Property 'byte' has no read method. SKIPPED
16:00:41,078  WARN JSONObject:940 - Property 'bytes' has no read method. SKIPPED
16:00:41,078  WARN JSONObject:940 - Property 'characterStream' has no read method. SKIPPED
16:00:41,078  WARN JSONObject:940 - Property 'clob' has no read method. SKIPPED我代码中也加了过滤的了config.setJsonPropertyFilter(new PropertyFilter(){
public boolean apply(Object source, String name, Object value) {
if(name.equals("teacher") || name.equals("student")) {
return true;
} else {
return false;
}
}});不知道要怎么改?请高手指点下