public abstract class BaseBrand<M extends BaseBrand<M>> extends Model<M> implements IBean {
public void setId(java.lang.Integer id) {
set("id", id);
}
public java.lang.Integer getId() {
return getInt("id");
}
public class Brand extends BaseBrand<Brand> {
项目:JFinal
ReflectKit.getFieldValue(brand, "id");
ReflectionUtil.getMethod(Brand.class,"getId");
ReflectionUtil.getProperty(brand, "id");
各种方式尝试,都找不到呢?
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.commons.lang3.reflect.MethodUtils.getMatchingMethod(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
at com.vip.vjtools.vjkit.reflect.ReflectionUtil.getMethod(ReflectionUtil.java:76)
at com.jtn.bgj.Test.main(Test.java:15)