In java, commons beanutils, try setting the 'address' and 'creditCardList' property for the object, but this gave me an error:
java.lang.NoSuchMethodException: Property 'address' has no setter method in class 'class com.dao.Student'
but I have this method. The code is here:
public class Main { public static void main(String[] args) { Object student = new Student("John"); Object address = new Address("NJ"); try { PropertyUtils.setProperty(student, "address", address);
source share