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.
我有一个需要实现的多模块化 Scala 应用程序 abd:
我的问题是我想避免使用 MongoDB JSON Api 转换为 JSON。
是否有一种聪明的方法来开发单个序列化层并将 MongoDB 从 JSON 转换为 BSON 格式?
我认为您可以使用杰克逊映射器来获取 json,并使用 Salat DAO(iirc 使用相同的杰克逊映射器)将您的对象存储在 Mongo 中。Salat 仅适用于案例类,不确定这是否是一个问题。