章节4-3启动项目报错
来源:4-3 Jpa事务实例
慕圣502602
2019-07-24
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’?
1回答
-
慕圣502602
提问者
2019-07-24
已经解决,版本不一致的问题
00
相似问题