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.
我正在更新页面中的数据以及调试时
def VariantInstance = Variant.get(params.id)
并查看 VariantInstance,我更改的数据保持不变。它不应该获取新数据吗?
不是基于您的代码。如果您所做的只是从数据库中获取现有数据,您认为它将如何获取新数据?
def VariantInstance = Variant.get(params.id) VariantInstance.properties = params