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以及无法注入问题
正确写法。

相关文章:

  • 2022-01-02
  • 2021-08-30
  • 2021-08-15
  • 2021-09-25
  • 2021-04-03
  • 2021-06-17
  • 2021-04-14
  • 2021-12-04
猜你喜欢
  • 2021-12-24
  • 2021-09-08
  • 2021-05-29
  • 2021-10-06
  • 2021-06-19
  • 2021-11-08
相关资源
相似解决方案