我正在尝试将文件添加到(博客)帖子域对象。 文件上传器允许为每个文件并行发送多个ajax请求。
如何最好地处理服务器端的同步?
要避免:
Could not synchronize database state with session org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect):
我在Grails服务中这样做:
static scope = "session"
这并没有做我需要的。