请问Spring是怎么个意思?我写了个java小实例 还是不太明白~(新手菜鸟)

port org.springframework.*;

import org.springframework.context.support.FileSystemXmlApplicationContext;

难道.* 不 包括后面那一串吗?为啥注释了长的import 报错FileSystemXmlApplicationContext cannot be resolved to a type

import org.springframework.context.support.*,你这么写就可以了,而你那么写的话不会导入子包里面的类。

写这个类时是扩展来写的

导入某个类路径不都是开发工具自动完成的吗,这个我重来都没有注意过

 import只导入类型,不导入子包。

import org.springframework.context.support.*,你这么写就可以了,而你那么写的话不会导入子包里面的类。

org.springframework.*只是引用了包名是org.springframework的类,它下面的包不会引用的