2013-04-09 30 views

回答

1

JAXBContext.newInstance拋出一個checked異常。你將無法直接在一個字段上設置它。您需要將其移動到構造函數中,並使用try/catch塊將其包圍。