首页 > 系统相关> > org.springframework.beans.InvalidPropertyException: Invalid property ‘XXXXXXXEntites[1024]
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);
}
标签:InvalidPropertyException,5.3,java,1024,spring,XXXXXXXEntites,jar,springframework 来源: https://blog.csdn.net/steamPlayGame/article/details/123233274