applicationContext.xml文件中SessionFactory配置 采用映射文件xxx.hbm.xml的写法映射文件:LocalSessionFactoryBean 采用注解配置到实体类:AnnotationSessionFacotyBean