章节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

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

0
0

分布式事务实践,从原理到实例,解决数据一致性

掌握分布式事务实现技术,是架构师必备技能。

1149 学习 · 153 问题

查看课程