NutzCN Logo
问答 beetl 找不到属性
发布于 2319天前 作者 tiankongkm 1525 次浏览 复制 上一个帖子 下一个帖子
标签:

属性名是isanchor 方法名是isIsanchor
看beetl的ObjectUtil的源码发现 不支持类型boolean字段名是is开头的字段

		if(invoker==null){			
			if(name.startsWith("is")){
				methodName = name;
				method = getGetMethod(c, methodName, null);
				if(method!=null){
					invoker = new PojoMethodInvoker(method);
				}
			}else{
				methodName = getIsMethod(name);
				method = getGetMethod(c, methodName, null);
				if(method!=null){
					invoker = new PojoMethodInvoker(method);
				}
			}
	
		}

咋搞。。。。

2 回复

给beetl报issue吧,我猜

添加回复
请先登陆
回到顶部