o.h.hql.internal.ast.ErrorTracker:Unable to locate class [xxx]

    xiaoxiao2023-10-13  152

    springboot jpa项目启动报错如下: o.h.hql.internal.ast.ErrorTracker : Unable to locate class [xxx] org.hibernate.hql.internal.ast.DetailedSemanticException: Unable to locate class [xxx]

    报错原因XXX类没有全路径报错截图: 正确代码示范:(UserViewInfo要写路径) @Query(value = "select new com.kingengine.keumserver.bean.pmi.UserViewInfo(u,d) from User u,Department d where u.deptId=d.id") List<UserViewInfo> findUserViewInfo(); 修改后再次启动ok!
    最新回复(0)