Ununennium
V2EX  ›  问与答

第一行代码就报错了 spring

  •  
  •   Ununennium · Apr 1, 2021 · 1065 views
    This topic created in 1894 days ago, the information mentioned may be changed or developed.

    各位大佬贵安。

    请教一个问题,我刚创建的 spring 项目,第一行代码就报错了。

    ApplicationContext context=new ClassPathXmlApplicationContext("beans.xml");
    
    报错信息是:类型不匹配 
    Found:'org.springframework.context.support.ClassPathXmlApplicationContext', 
    required: 'org.apache.catalina.core.ApplicationContext'
    
    
    谢谢各位大佬不吝赐教,在下不尽感激
    Ununennium
        1
    Ununennium  
    OP
       Apr 1, 2021
    不好意思导错包了……太丢人了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2661 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 15:35 · PVG 23:35 · LAX 08:35 · JFK 11:35
    ♥ Do have faith in what you're doing.