程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> 編程解疑 >> javaweb-springmvc項目中springmvc.xml文件配置錯誤?

javaweb-springmvc項目中springmvc.xml文件配置錯誤?

編輯:編程解疑
springmvc項目中springmvc.xml文件配置錯誤?

圖片說明
org.springframework.beans.factory. BeanCreationException: Error creating bean with name 'houseChangeInfoController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory. BeanCreationException: Could not autowire field: private cn.teen.service. HouseChangeInfoService cn.teen.controller.HouseChangeInfoController. service; nested exception is org.springframework.beans.factory. CannotLoadBeanClassException: Error loading class [org.springframework.validation.beanvalidation. LocalValidatorFactoryBean] for bean with name 'validator' defined in class path resource [spring-mvc. xml]: problem with class file or dependent class; nested exception is java.lang. NoClassDefFoundError: javax/validation/ValidatorFactory
org.springframework.beans.factory。BeanCreationException:創建bean與錯誤的名字“houseChangeInfoController”:注入autowired的依賴關系失敗;嵌套org.springframework.beans.factory是個例外。私人cn.teen.service BeanCreationException:不能自動裝配領域。HouseChangeInfoService cn.teen.controller.HouseChangeInfoController。服務;嵌套org.springframework.beans.factory是個例外。[org.springframework.validation.beanvalidation CannotLoadBeanClassException:錯誤加載類。LocalValidatorFactoryBean]為bean名稱驗證器的類路徑中定義的資源(spring mvc。類文件或xml):問題依賴類;嵌套異常. lang。NoClassDefFoundError:javax /驗證/ ValidatorFactory

Caused by: org.springframework.beans.factory. BeanCreationException: Could not autowire field: private cn.teen.service. HouseChangeInfoService cn.teen.controller.HouseChangeInfoController. service; nested exception is org.springframework.beans.factory. CannotLoadBeanClassException: Error loading class [org.springframework.validation.beanvalidation. LocalValidatorFactoryBean] for bean with name 'validator' defined in class path resource [spring-mvc. xml]: problem with class file or dependent class; nested exception is java.lang. NoClassDefFoundError: javax/validation/ValidatorFactory
引起的:org.springframework.beans.factory。私人cn.teen.service BeanCreationException:不能自動裝配領域。HouseChangeInfoService cn.teen.controller.HouseChangeInfoController。服務;嵌套org.springframework.beans.factory是個例外。[org.springframework.validation.beanvalidation CannotLoadBeanClassException:錯誤加載類。LocalValidatorFactoryBean]為bean名稱驗證器的類路徑中定義的資源(spring mvc。類文件或xml):問題依賴類;嵌套異常. lang。NoClassDefFoundError:javax /驗證/ ValidatorFacto

最佳回答:


Error loading class [org.springframework.validation.beanvalidation.LocalValidatorFactoryBean] for bean with name 'validator' defined in class path resource [spring-mvc.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: javax/validation/ValidatorFactory

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved