为了账号安全,请及时绑定邮箱和手机立即绑定

做spring国际化语言切换时报的错 求解答

做spring国际化语言切换时报的错 求解答

慕无忌2606223 2016-12-22 10:56:27
2016-12-22 10:27:55,571 ERROR [localhost-startStop-1] org.springframework.web.context.ContextLoader.initWebApplicationContext(331) | Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'languageController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.springframework.web.servlet.i18n.CookieLocaleResolver com.ml.controller.LanguageController.resolver; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.web.servlet.i18n.CookieLocaleResolver] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 1811 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信