在读取xml文件,给对象注入属性时,读取的property为null
你的beanNode就是个空的,直接写成Element beanElement = (Element )beanNodeList.item(i);试试呢