springmvc 运行报错Controller无法注入如何解决 5
创建文件[d:\apache-tomcat-9.0.22\wtpwebapps\zhan\WEB-INF\classes\com\hp\controller\boccon...
创建文件[d:\apache-tomcat-9.0.22\wtpwebapps\zhan\WEB-INF\classes\com\hp\controller\boccontroller.class]中定义的名为“boccontroller”的bean时出错:bean实例化失败;嵌套异常为org.springframework.beans.bean InstantiationException:未能实例化[com.hp.controller.boccontroller]:构造函数引发异常;嵌套异常为java.lang.ExceptionInitializerErrorError creating bean with name 'bocController' defined in file [D:\apache-tomcat-9.0.22\wtpwebapps\zhan\WEB-INF\classes\com\hp\controller\BocController.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.hp.controller.BocController]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询