请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

章节4-3启动项目报错

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘customerServiceInCode’: Unsatisfied dependency expressed through field ‘customerRepository’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘customerRepository’: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract com.imooc.example.springtxjpa.domain.Customer com.imooc.example.springtxjpa.dao.CustomerRepository.findOneByuserName(java.lang.String)! No property userName found for type Customer! Did you mean ‘username’?

正在回答 回答被采纳积分+3

1回答

提问者 慕圣502602 2019-07-24 23:05:49

已经解决,版本不一致的问题

登录后可查看完整回答登录/注册
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信