Add log4j configuration. Init spring repository and jpa configuration.