请教老师,3-4节13分50秒的地方启动报错, UnsatisfiedDependencyException: Error creating bean.
来源:3-4 service及mybatis接入(下)
慕数据4565134
2020-08-09
与源代码核对过了是一样的,网上也搜过了找不到解决办法,恳请老师解答。
报错信息如下:
Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2020-08-08 03:43:29.591 ERROR 7193 — [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘/user’: Unsatisfied dependency expressed through field ‘userService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘userServiceImpl’: Unsatisfied dependency expressed through field ‘userModelMapper’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘userModelMapper’ defined in file [/dianping/dal/UserModelMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property ‘sqlSessionFactory’ or ‘sqlSessionTemplate’ are required
1回答
-
龙虾三少
2020-08-09
用户的bean对象没有初始化成功 检查下该autowired的是否代码里都谢了
00
相似问题