解决方法:
controller层已经有@Autowired自动装配了,所以调service方法中的Dao里就不能有了,
实现类中还需要加上@Service
在这里插入图片描述我晕哦。。。在web-xml文件中的配置写错了
SSM框架运行起来报Injection of autowired dependencies failed
最新推荐文章于 2021-02-18 10:30:12 发布
解决方法:
controller层已经有@Autowired自动装配了,所以调service方法中的Dao里就不能有了,
实现类中还需要加上@Service
在这里插入图片描述我晕哦。。。在web-xml文件中的配置写错了