import标签只能导入xml文件吗?

 

你这样写是错误的,如果你要导入properties配置文件的话你可以这样写

<context:property-placeholder location="classpath:jdbc.properties"></context:property-placeholder>

是的吧,import一般是导入子配置文件用的