Add springframework and hibernate dependencies to gradle