Create the properties file that contains the properties used by our application context configuration class.
Configure the datasource bean.
Configure the entity manager factory bean.
Configure the transaction manager bean.
Enable annotation-driven transaction management.
Configure Spring Data JPA.