在我的portal-ext屬性文件中,我找到了這些參數。我不記得我爲什麼把它們放到配置文件中,我想我只是從別人說的它會幫助的其他網頁複製它們。這些liferay config params究竟意味着什麼?
有解釋什麼參數做的評論,但我仍然不明白的根本問題。
上傳的數據如何被外部序列化?
爲什麼文件> 10 MB被認爲過大,爲什麼它們必須被緩存?
#Set the threshold size to prevent extraneous serialization of uploaded data.
com.liferay.portal.upload.LiferayFileItem.threshold.size=262144
#Set the threshold size to prevent out of memory exceptions caused by caching excessively
#large uploaded data. Default is 1024 * 1024 * 10.
com.liferay.portal.upload.LiferayInputStream.threshold.size=10485760