//设置list最大长度
@InitBinder
public void initBinder(WebDataBinder binder) {
// 设置List的最大长度
binder.setAutoGrowCollectionLimit(10000);
}
页面向后台传List值时数量过大问题
最新推荐文章于 2024-09-08 22:15:25 发布
本文介绍了一种在Web应用程序中设置List类型数据结构最大长度的方法,通过使用@InitBinder注解和WebDataBinder对象,可以有效地控制集合类型的大小,避免因数据过多导致的内存溢出等问题。
1万+

被折叠的 条评论
为什么被折叠?



