title: Is it possible to make Spring ignore a bean property that is not writable or has an invalid setter method
body: <p>Is there a way to have Spring not throw exception in below case?</p>
  
  <pre><code>&lt;bean id="myMain" class="pak.Main"&gt;
    &lt;property name="name" value="myName"/&gt;
    &lt;property name="age" value="100"/&gt;
    &lt;property name="human" value="true"/&gt;
  &lt;/bean&gt;
  
  
  public class Main {
    private String name;
    private Integer age;
  
    public void setName(String name) {
      this.name = name;
    }
  
    public void setAge(Integer age) {
      this.age = age;
    }
  
    public static void main(String[] args) {
       new ClassPathXmlApplicationContext("beans.xml")
          .getBean("myMain", Main.class);
    }
  }
  </code></pre>
  
  <p>This is thrown</p>
  
  <pre><code>Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myMain' defined in class path resource [beans.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'human' of bean class [pak.Main]: Bean property 'human' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
  </code></pre>