xml文件全部存在resource中; <!--如果实体类用注解映射,用class--> <mapping class="pojo.Employee"></mapping> <!--如果实体类用xml配置