visual2015 2016-04-13 01:34 采纳率: 80%
浏览 3221
已采纳

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

  • 写回答

3条回答 默认 最新

  • visual2015 2016-04-13 01:54
    关注

    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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥20 有没有人会这个东西的
  • ¥15 cfx考虑调整“enforce system memory limit”参数的设置
  • ¥30 航迹分离,航迹增强,误差分析
  • ¥15 Chrome Manifest扩展引用Ajax-hook库拦截请求失败
  • ¥15 用Ros中的Topic通讯方式控制小乌龟的速度,走矩形;编写订阅器代码
  • ¥15 LLM accuracy检测
  • ¥15 pycharm添加远程解释器报错
  • ¥15 如何让子窗口鼠标滚动独立,不要传递消息给主窗口
  • ¥15 如何能达到用ping0.cc检测成这样?如图
  • ¥15 关于#DMA固件#的问题,请各位专家解答!