- 博客(1)
- 收藏
- 关注
原创 Error creating bean with name ‘userService‘: Unsatisfied dependency expressed through field‘userMap‘
在使用@Autowrited注解时,报红提示我“Could not autowire. No beans of ‘UserMapper’ type found.”错误,不能正常运行。今天在做项目时遇到了idea报“Could not autowire. No beans of ‘UserMapper’ type found. ”的错误,记录以下解决过程。当我们在使用@Autowired注解的时候,默认required=true,表示注入的时候bean必须存在,否则注入失败。于是,我上网查询解决办法,
2022-10-04 17:45:08 4398 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人