org.springframework.beans.InvalidPropertyException: Invalid property ‘XXXXXXXEntites[1024]
2022/3/3 7:16:35
本文主要是介绍org.springframework.beans.InvalidPropertyException: Invalid property ‘XXXXXXXEntites[1024],对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
org.springframework.beans.InvalidPropertyException: Invalid property 'XXXXXXXEntites[1024]' of bean class [xx.xx.xxx.xxxx.xx.business.entity.XXXXXXXEntites]: Index of out of bounds in property path 'XXXXXXXEntites[1024]'; nested exception is java.lang.IndexOutOfBoundsException: Index: 1024, Size: 1024 at org.springframework.beans.AbstractNestablePropertyAccessor.getPropertyValue(AbstractNestablePropertyAccessor.java:700) ~[spring-beans-5.3.7.jar:5.3.7] at org.springframework.beans.AbstractNestablePropertyAccessor.getNestedPropertyAccessor(AbstractNestablePropertyAccessor.java:843) ~[spring-beans-5.3.7.jar:5.3.7] at org.springframework.beans.AbstractNestablePropertyAccessor.getPropertyAccessorForPropertyPath(AbstractNestablePropertyAccessor.java:820) ~[spring-beans-5.3.7.jar:5.3.7] at org.springframework.beans.AbstractNestablePropertyAccessor.setPropertyValue(AbstractNestablePropertyAccessor.java:256) ~[spring-beans-5.3.7.jar:5.3.7] at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:104) ~[spring-beans-5.3.7.jar:5.3.7] at org.springframework.validation.DataBinder.applyPropertyValues(DataBinder.java:851) ~[spring-context-5.3.7.jar:5.3.7] at org.springframework.validation.DataBinder.doBind(DataBinder.java:747) ~[spring-context-5.3.7.jar:5.3.7] at org.springframework.web.bind.WebDataBinder.doBind(WebDataBinder.java:198) ~[spring-web-5.3.7.jar:5.3.7] at org.springframework.web.bind.ServletRequestDataBinder.bind(ServletRequestDataBinder.java:116) ~[spring-web-5.3.7.jar:5.3.7] at org.springframework.web.servlet.mvc.method.annotation.ServletModelAttributeMethodProcessor.bindRequestParameters(ServletModelAttributeMethodProcessor.java:158) ~[spring-webmvc-5.3.7.jar:5.3.7] at org.springframework.web.method.annotation.ModelAttributeMethodProcessor.resolveArgument(ModelAttributeMethodProcessor.java:168) ~[spring-web-5.3.7.jar:5.3.7] at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:121) ~[spring-web-5.3.7.jar:5.3.7] at org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:170) ~[spring-web-5.3.7.jar:5.3.7] at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137) ~[spring-web-5.3.7.jar:5.3.7] at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106) ~[spring-webmvc-5.3.7.jar:5.3.7] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:894) ~[spring-webmvc-5.3.7.jar:5.3.7] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) ~[spring-webmvc-5.3.7.jar:5.3.7] at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.3.7.jar:5.3.7]
解决方案:
@InitBinder public void initBinder(WebDataBinder binder) { //默认设置256,自定义设置为1024 binder.setAutoGrowCollectionLimit(1024); }
参考资料
这篇关于org.springframework.beans.InvalidPropertyException: Invalid property ‘XXXXXXXEntites[1024]的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-14动态路由项目实战:从入门到上手
- 2024-11-14函数组件项目实战:从入门到简单应用
- 2024-11-14获取参数项目实战:新手教程与案例分析
- 2024-11-14可视化开发项目实战:新手入门教程
- 2024-11-14可视化图表项目实战:从入门到实践
- 2024-11-14路由懒加载项目实战:新手入门教程
- 2024-11-14路由嵌套项目实战:新手入门教程
- 2024-11-14全栈低代码开发项目实战:新手入门指南
- 2024-11-14全栈项目实战:新手入门教程
- 2024-11-14useRequest教程:新手快速入门指南