zoukankan      html  css  js  c++  java
  • 如果配置spring时出现 It is indirectly referenced from required .class files

    运行代码是出现如下错误信息:

    Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
        The type org.springframework.beans.BeansException cannot be resolved. It is indirectly referenced from required .class files
        The constructor ClassPathXmlApplicationContext(String) refers to the missing type BeansException
        The method getBean(String, Class<People>) is undefined for the type ApplicationContext

    出错原因:是找不到相应的依赖包,所以会出现:

    It is indirectly referenced from required .class files

    解决办法:
    在spring文件夹下spring-framework-4.1.6.RELEASE-distspring-framework-4.1.6.RELEASElibs下找到spring-beans-4.1.6.RELEASE.jar包并导入就可以了
  • 相关阅读:
    HTTP协议
    django-两种方式对单表的操作
    模态框对话
    django
    web框架原理
    DNS详解
    jQuery
    初识web框架
    练习:简单主页搭建
    多表查询
  • 原文地址:https://www.cnblogs.com/hzh-666/p/10914285.html
Copyright © 2011-2022 走看看