问题出现,最近在学QueryDSL时,起初搭好环境后,启动i项目一直报错,No property findOffEmpCust found for type CustomersEntity!
代码示例
@Repository
public interface CustomerRepo extends JpaRepository<CustomersEntity,Long>, JpaSpecificationExecutor<CustomersEntity>, CustomerRepoCustom {
}
public interface CustomerRepoCustom {
// 自定义返回
public List<OffEmpCustVo> findOffEmpCust();
}
public class CustomerRepoCustomImpl implements CustomerRepoCustom {
@PersistenceContext
private EntityManager em;
@Override
public List<OffEmpCustVo> findOffEmpCust() {
JPAQuery<OffEmpCustVo