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.
optaplanner 使用 XStream 从 XML 读取求解器配置。为了改用 JAXB,自定义实现 XMLSolverFactory 和 SolverConfig 就足够了吗?
不,因为这些*Config类在 6.0.0 中没有使用 JAXB 注释进行注释。如果我们想从 XStream 迁移到 JAXB,有一个公开的讨论,所以我们可以提供求解器配置的 XSD。
*Config
另请注意,这两件事是完全不同的:
对于 2),您可以很容易地XStreamProblemIO用 a替换JaxbProblemIO(应该很容易编写)。
XStreamProblemIO
JaxbProblemIO