Spring MVC 配置报错: Error creating bean with name ‘MenuController’: Injection of resource dependencies
曾经困扰我一整天的错误,终于解决了。这段报错代码的意思是:创建名为“Menucontroller”的bean时出错:资源依赖项的注入
这是applicationContext.xml里的内容
<beans xmlns=“http://www.springframework.org/schema/beans”
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”
xmlns:aop=“http://www.springframework.org/schema/aop”
xmlns:tx=“http://www.springframework.org/schema/tx”
xmlns:context=“http://www.springframework.org/schema/context”
xsi:schemaLocation=“http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.x