猿问

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

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)}
慕无忌2606223
浏览 1808回答 1
1回答
随时随地看视频慕课网APP
我要回答