我的代码如下所示:
import org.apache.catalina.core.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public static void main(String args[]) {
ApplicationContext context =
new ClassPathXmlApplicationContext("spring_conf.xml");
}
为什么我收到此错误?
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Type mismatch: cannot convert from ClassPathXmlApplicationContext to ApplicationContext
at root.Main.main(Main.java:11)
我有什么遗漏或做错了吗?