demo案例 run不起来
来源:2-8 搭建数据库与持久层框架(二)

weixin_慕数据4102001
2022-05-19
求解答!
一直到搭建连接数据库,程序都可以run,但是写完api,dao,service三个模块以后,程序就会报错
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘demoApi’: Unsatisfied dependency expressed through field ‘demoService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘demoService’: Unsatisfied dependency expressed through field ‘demoDao’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘demoDao’ defined
写回答
2回答
-
慕慕8476703
2022-07-07
有一个demoApi那里错了,老师的项目里有DemoApi的class,好像没有demoApi
00 -
xiaorenwu029
2022-07-02
请把mapper文件的代码贴出来看一下,有可能是mapper文件里写错了
00
相似问题