These days are empty, just learn Spring and Hibernate (introduced in the English reference in Spring). The following mainly introduces the change after Hibernate 1. Use Hibernate to add sessionFactory in the configuration file. Configuration, as follows net / zdsoft / swh / entity / company.hbm. XML value> net.sf.hibernate.diaalect.MysqldiaAlaforct prop> true prop> True prop> prOPs> property> < Ref bean = "datasource" /> property> bean> 2, use transaction management property> bean>