Java 我得到org.springframework.beans.factory.BeanCreationException

Java 我得到org.springframework.beans.factory.BeanCreationException,java,mysql,jpa,hibernate-mapping,querydsl,Java,Mysql,Jpa,Hibernate Mapping,Querydsl,我无法使用@query method在hibernate JPA QueryDSL中执行此查询。。在我的存储库中使用此查询时,会出现以下异常:“org.springframework.beans.factory.BeanCreationException” @Query("SELECT id,date,customer_id, SUM(price) AS price, GROUP_CONCAT(description ORDER BY customer_id DESC SEPARATOR ',

我无法使用@query method在hibernate JPA QueryDSL中执行此查询。。在我的存储库中使用此查询时,会出现以下异常:“org.springframework.beans.factory.BeanCreationException”

 @Query("SELECT id,date,customer_id, SUM(price) AS price, GROUP_CONCAT(description ORDER BY customer_id DESC SEPARATOR ',') AS description, category FROM #{#entityName} e WHERE product_id = :productId GROUP BY category")
  public Iterable<Product> findByProductId(@Param("productdId") int productId);

如何执行这个?对吗?或者我必须执行其他逻辑吗?

请执行完整堆栈跟踪。