标签:
Error setting expression ‘user.name‘ with value ‘[Ljava.lang.String;@f18d37‘
ognl.NoSuchPropertyException: com.lp.User.name [java.lang.IllegalAccessException: Class ognl.OgnlRuntime can not access a member of class com.lp.User with modifiers ""]
at ognl.OgnlRuntime.setFieldValue(OgnlRuntime.java:1663)
造成这种错误,因为model层的属性不是public类型的,如下:
public class User {
String name;
}
更改过后就没有问题了
标签:
原文地址:http://www.cnblogs.com/nongmei/p/4701239.html