Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我收到了这个异常:默认构造函数无法处理隐式超级构造函数抛出的异常类型 JAXBException。必须定义显式构造函数
JAXBContext.newInstance抛出一个检查异常。您将无法直接在字段上设置它。您需要将它移动到您的构造函数中并用 try/catch 块包围它。
JAXBContext.newInstance