关于Error creating bean with name以及无法注入问题

contextConfigLocation classpath:spring-mybatis.xml dispatcherServlet org.springframework.web.servlet.DispatcherServlet contextConfigLocation classpath:applicationContext.xml 1

这个问题卡了两天 注解没有错 配置文件的扫描也没有错

解决方案:
classpath:spring-mybatis.xml

classpath:applicationContext.xml
的位置交换就可以了
两天!我的天 看起来是先启动spring的配置文件再启动springMvc的配置文件 然后 解决。

关于Error creating bean with name以及无法注入问题
正确写法。