0
這裏是我用來公開爲Web服務代碼問題同時暴露方法WEBSERVICES
rs = st.executeQuery(individualqueries);
columnNames = new ArrayList<String>();
int numCols = rs.getMetaData().getColumnCount();
int j = 0;
for (j = 1; j <= numCols; j++)
{
columnNames.add(rs.getMetaData().getColumnName(j));
}
queryResult.fields.addAll(columnNames);
records = new ArrayList<List<String>>();
while (rs.next()) {
List<String> fieldValues = new ArrayList<String>();
int k = 0;
for (k = 1; k <= numCols; k++) {
fieldValues.add(rs.getString(k));
}
records.add(fieldValues);
}
當我試圖揭露這個我得到錯誤信息如下
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
java.util.List is an interface, and JAXB can't handle interfaces.
this problem is related to the following location:
at private java.util.List