麻烦大家帮我看看Spring data JPA的问题,多谢

heyongbo 2014-04-02 12:41:41
public interface WeixinMenuDao extends Repository<WeixinMenu, Integer> {

public WeixinMenu findOne(Short id);
// --------------------


// @Query("from WeixinMenu bean where bean.pid = ?1 ")
// public List<WeixinMenu> findByPid(Short pid);
}

SEVERE: Servlet.service() for servlet [foreground] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'weixinController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.jspxcms.core.service.WeixinMenuQueryService com.jspxcms.core.web.fore.WeixinController.weixinMenuQueryService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'weixinMenuQueryServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.jspxcms.core.service.impl.WeixinMenuQueryServiceImpl.setDao(com.jspxcms.core.repository.WeixinMenuDao); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'weixinMenuDao': FactoryBean threw exception on object creation; nested exception is org.springframework.data.mapping.PropertyReferenceException: No property find found for type com.jspxcms.core.domain.WeixinMenu] with root cause
org.springframework.data.mapping.PropertyReferenceException: No property find found for type com.jspxcms.core.domain.WeixinMenu
at org.springframework.data.mapping.PropertyPath.<init>(PropertyPath.java:74)


...全文
99 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧