Maven项目启动遇见Error creating bean with name ‘itemCatController‘:Injection of autowired dependencies错误

问题描述

Maven项目启动遇见Error creating bean with name ‘itemCatController‘:Injection of autowired dependencies错误
Maven项目启动遇见Error creating bean with name ‘itemCatController‘:Injection of autowired dependencies错误

问题解决

困扰了一下午的难题,看了看网上的方法,给了启发
1.修改SpringMvc.xml
Maven项目启动遇见Error creating bean with name ‘itemCatController‘:Injection of autowired dependencies错误
需要加上新写的Service
Maven项目启动遇见Error creating bean with name ‘itemCatController‘:Injection of autowired dependencies错误
2.修改applicationContext-service.xml
Maven项目启动遇见Error creating bean with name ‘itemCatController‘:Injection of autowired dependencies错误增加新写的Service
Maven项目启动遇见Error creating bean with name ‘itemCatController‘:Injection of autowired dependencies错误到此,问题得到解决
Maven项目启动遇见Error creating bean with name ‘itemCatController‘:Injection of autowired dependencies错误