Fix autowiring problem. Session Factory still give error because database are not define