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包并导入就可以了
  • 相关阅读:
    (数论选拔)联盟阵容
    ai变成bi(递增)最小次数
    状压dp
    dp被3整除的子序列
    离散化+莫队
    dp+哈希
    set的应用
    NOIP 2016 明明的随机数
    洛谷背景更改
    zzulioj 1734 堆
  • 原文地址:https://www.cnblogs.com/hzh-666/p/10914285.html
Copyright © 2011-2022 走看看