搞了半天,原来我的NHibernate.cfg.xml文件里没加上新增加的hbm.xml文件 加上 Xml代码 <mapping resource="wisers/weboa/project/model/xml/item.hbm.xml" />!